diff options
author | w00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7> | 2008-04-06 12:04:20 +0000 |
---|---|---|
committer | w00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7> | 2008-04-06 12:04:20 +0000 |
commit | 92eda175245c3d3da6b41af5c52d1540a23a0dc3 (patch) | |
tree | 093e56a38e886b755296cdc7baa6a99548b3dbbf | |
parent | f590209bd08377cf4cec56a362eab7320aec3a31 (diff) |
Fix a silly bug we never thought was a bug, in m_messageflood - the message that got a user kicked was always allowed through (appearing *after* they were kicked). Was a return 1 in the wrong place.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9372 e03df62e-2008-0410-955e-edbf42e46eb7
-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; } } |