From 16fad76febd1e35a5e289a0890df212c1c4e3c81 Mon Sep 17 00:00:00 2001 From: attilamolnar Date: Sun, 21 Oct 2012 17:25:17 +0200 Subject: [PATCH] m_nickflood Fix a case when channels were locked regardless of elapsed time since the last nick change Fixes #330 reported by @Shawn-Smith --- src/modules/m_nickflood.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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() -- 2.39.5