diff options
Diffstat (limited to 'src/modules')
-rw-r--r-- | src/modules/m_messageflood.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/modules/m_messageflood.cpp b/src/modules/m_messageflood.cpp index c506a2fb7..7122c535b 100644 --- a/src/modules/m_messageflood.cpp +++ b/src/modules/m_messageflood.cpp @@ -240,13 +240,16 @@ class ModuleMsgFlood : public Module ServerInstance->PI->SendModeStr(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); + if (!dest->ServerKickUser(user, kickmessage, true)) { delete dest; - return 1; } + + return 1; } } |