Skip to content

Commit

Permalink
m_messageflood Ask to be the last to handle OnUserPreMessage/OnUserPr…
Browse files Browse the repository at this point in the history
…eNotice

Fixes #394 reported by @JDowny
  • Loading branch information
attilamolnar committed Jan 2, 2013
1 parent 9cd47a4 commit 3988e97
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/modules/m_messageflood.cpp
Expand Up @@ -188,8 +188,11 @@ class ModuleMsgFlood : public Module
return MOD_RES_PASSTHRU; return MOD_RES_PASSTHRU;
} }


~ModuleMsgFlood() void Prioritize()
{ {
// we want to be after all modules that might deny the message (e.g. m_muteban, m_noctcp, m_blockcolor, etc.)
ServerInstance->Modules->SetPriority(this, I_OnUserPreMessage, PRIORITY_LAST);
ServerInstance->Modules->SetPriority(this, I_OnUserPreNotice, PRIORITY_LAST);
} }


Version GetVersion() Version GetVersion()
Expand Down

0 comments on commit 3988e97

Please sign in to comment.