From: attilamolnar Date: Sun, 21 Oct 2012 15:25:17 +0000 (+0200) Subject: m_nickflood Fix a case when channels were locked regardless of elapsed time since... X-Git-Tag: v2.0.23~491 X-Git-Url: https://git.netwichtig.de/gitweb/?a=commitdiff_plain;h=16fad76febd1e35a5e289a0890df212c1c4e3c81;p=user%2Fhenk%2Fcode%2Finspircd.git m_nickflood Fix a case when channels were locked regardless of elapsed time since the last nick change Fixes #330 reported by @Shawn-Smith --- diff --git a/src/modules/m_nickflood.cpp b/src/modules/m_nickflood.cpp index 7c8452a6c..ec9d9a261 100644 --- a/src/modules/m_nickflood.cpp +++ b/src/modules/m_nickflood.cpp @@ -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()