diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/userprocess.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/userprocess.cpp b/src/userprocess.cpp index 9240733a0..e79c879c2 100644 --- a/src/userprocess.cpp +++ b/src/userprocess.cpp @@ -112,7 +112,7 @@ void InspIRCd::ProcessUser(userrec* cu) current->lines_in++; - if (current->lines_in > current->flood) + if (current->flood && current->lines_in > current->flood) FloodQuitUser(current); else { @@ -135,7 +135,7 @@ void InspIRCd::ProcessUser(userrec* cu) current->lines_in = 0; } - if (++current->lines_in > current->flood) + if (++current->lines_in > current->flood && current->flood) { FloodQuitUser(current); return; |