]> git.netwichtig.de Git - user/henk/code/inspircd.git/commitdiff
Fix a silly bug we never thought was a bug, in m_messageflood - the message that...
authorw00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7>
Sun, 6 Apr 2008 12:04:20 +0000 (12:04 +0000)
committerw00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7>
Sun, 6 Apr 2008 12:04:20 +0000 (12:04 +0000)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9372 e03df62e-2008-0410-955e-edbf42e46eb7

src/modules/m_messageflood.cpp

index c506a2fb78b8f8b04298720488bb7ba65f490891..7122c535bdd31c5fc71138c8a3b1929c30c31fc5 100644 (file)
@@ -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;
                        }
                }