]> git.netwichtig.de Git - user/henk/code/inspircd.git/commitdiff
m_nickflood Fix a case when channels were locked regardless of elapsed time since...
authorattilamolnar <attilamolnar@hush.com>
Sun, 21 Oct 2012 15:25:17 +0000 (17:25 +0200)
committerattilamolnar <attilamolnar@hush.com>
Sun, 21 Oct 2012 16:06:24 +0000 (18:06 +0200)
Fixes #330 reported by @Shawn-Smith

src/modules/m_nickflood.cpp

index 7c8452a6cb514874792e6f5d69a66876b4c2251c..ec9d9a26140d91f9b12e945f8ac02f76d73095ab 100644 (file)
@@ -56,7 +56,7 @@ class nickfloodsettings
                 * on successful nick changes; this will be checked before the counter is
                 * incremented.
                 */
-               return (counter + 1 >= this->nicks);
+               return ((ServerInstance->Time() <= reset) && (counter == this->nicks));
        }
 
        void clear()