From 3988e9779e95c4d758a489ca4dc49138a0a0f26f Mon Sep 17 00:00:00 2001 From: attilamolnar Date: Wed, 2 Jan 2013 19:01:57 +0100 Subject: m_messageflood Ask to be the last to handle OnUserPreMessage/OnUserPreNotice Fixes #394 reported by @JDowny --- src/modules/m_messageflood.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/modules/m_messageflood.cpp b/src/modules/m_messageflood.cpp index 814eee5ef..9ff17924d 100644 --- a/src/modules/m_messageflood.cpp +++ b/src/modules/m_messageflood.cpp @@ -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() -- cgit v1.2.3