summaryrefslogtreecommitdiff
path: root/src/modules/m_messageflood.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules/m_messageflood.cpp')
-rw-r--r--src/modules/m_messageflood.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/modules/m_messageflood.cpp b/src/modules/m_messageflood.cpp
index 16ad1f2a4..c37537249 100644
--- a/src/modules/m_messageflood.cpp
+++ b/src/modules/m_messageflood.cpp
@@ -215,9 +215,7 @@ class ModuleMsgFlood : public Module
parameters.push_back(dest->name);
parameters.push_back("+b");
parameters.push_back(user->MakeWildHost());
- ServerInstance->SendMode(parameters, ServerInstance->FakeClient);
-
- ServerInstance->PI->SendModeStr(dest->name, std::string("+b ") + user->MakeWildHost());
+ ServerInstance->SendGlobalMode(parameters, ServerInstance->FakeClient);
}
char kickmessage[MAXBUF];