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.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/modules/m_messageflood.cpp b/src/modules/m_messageflood.cpp
index 0eff817aa..a976549c5 100644
--- a/src/modules/m_messageflood.cpp
+++ b/src/modules/m_messageflood.cpp
@@ -238,10 +238,7 @@ class ModuleMsgFlood : public Module
parameters[2] = user->MakeWildHost();
ServerInstance->SendMode(parameters,3,user);
- parameterlist n;
- n.push_back("+b");
- n.push_back(user->MakeWildHost());
- ServerInstance->PI->SendMode(dest->name, n);
+ ServerInstance->PI->SendMode(dest->name, std::string("+b ") + user->MakeWildhost());
}
char kickmessage[MAXBUF];
snprintf(kickmessage, MAXBUF, "Channel flood triggered (limit is %d lines in %d secs)", f->lines, f->secs);