diff options
author | attilamolnar <attilamolnar@hush.com> | 2012-10-21 17:25:17 +0200 |
---|---|---|
committer | attilamolnar <attilamolnar@hush.com> | 2012-10-21 18:06:24 +0200 |
commit | 16fad76febd1e35a5e289a0890df212c1c4e3c81 (patch) | |
tree | ef633fe98b056703ebf40dbfc40b52d4163e1b51 /src | |
parent | 2d7d62dfd2e3422a08aceaac32a96af7a709a544 (diff) |
m_nickflood Fix a case when channels were locked regardless of elapsed time since the last nick change
Fixes #330 reported by @Shawn-Smith
Diffstat (limited to 'src')
-rw-r--r-- | src/modules/m_nickflood.cpp | 2 |
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() |