summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorburlex <burlex@e03df62e-2008-0410-955e-edbf42e46eb7>2007-06-11 21:39:09 +0000
committerburlex <burlex@e03df62e-2008-0410-955e-edbf42e46eb7>2007-06-11 21:39:09 +0000
commitfccc2136b8567b0a78afd0e298c36b2defc29497 (patch)
treeee88f1d268a36b219bf9fcd352f31b09016b86b9 /src
parent13be12c8120a993406c8301fd84b9f130e465c58 (diff)
* Changes to userprocess functions to allow flood limit removal by m_operflood.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7273 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src')
-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;