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:
prozacx
2006-03-22 08:02:37 +00:00
parent bbe30f689c
commit b740d7cc36
7 changed files with 83 additions and 149 deletions
+1 -2
View File
@@ -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);
}