mirror of
https://github.com/znc/znc.git
synced 2026-08-03 23:43:42 +02:00
Refactored module hook calling macros into one master macro
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@708 726aef4b-f618-498e-8847-2d620e286838
This commit is contained in:
@@ -1152,8 +1152,7 @@ void CZNC::Broadcast(const CString& sMessage, CUser* pUser) {
|
||||
if (a->second != pUser) {
|
||||
CString sMsg = sMessage;
|
||||
#ifdef _MODULES
|
||||
CUser* m_pUser = a->second; // This is a semi-hack because MODULECALLCONT below expects the user to be stored in m_pUser
|
||||
MODULECALLCONT(OnBroadcast(sMsg));
|
||||
MODULECALL(OnBroadcast(sMsg), a->second, NULL, continue);
|
||||
#endif
|
||||
a->second->PutStatusNotice("*** " + sMsg);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user