]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_messageflood.cpp
m_messageflood Ask to be the last to handle OnUserPreMessage/OnUserPreNotice
[user/henk/code/inspircd.git] / src / modules / m_messageflood.cpp
index 814eee5ef7e8757c08aff551fbb11586486e7fca..9ff17924d1c38bbb154c4a959fa151824894a221 100644 (file)
@@ -188,8 +188,11 @@ class ModuleMsgFlood : public Module
                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()