summaryrefslogtreecommitdiff
path: root/src/userprocess.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/userprocess.cpp')
-rw-r--r--src/userprocess.cpp4
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;