summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/modules/m_nickflood.cpp2
1 files changed, 1 insertions, 1 deletions
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()