summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2007-10-21 14:30:58 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2007-10-21 14:30:58 +0000
commit2311a4b6f75a17917e5da78e684f601d49f536de (patch)
tree4848932948e978121de7f6cac7ee131d1dd8bf5e
parent773afbfe3bb6ae0df1776016a080185e6094c8fb (diff)
Move some stuff around so the last penalty line doesnt get held erroneously until data arrives again
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8254 e03df62e-2008-0410-955e-edbf42e46eb7
-rw-r--r--src/userprocess.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/userprocess.cpp b/src/userprocess.cpp
index 41c5ae4cd..68c469aac 100644
--- a/src/userprocess.cpp
+++ b/src/userprocess.cpp
@@ -163,15 +163,16 @@ void InspIRCd::DoBackgroundUserStuff()
User *curr = *count2;
if (curr->Penalty)
+ {
curr->Penalty--;
+ if (curr->Penalty < 10)
+ Parser->DoLines(curr, true);
+ }
if (curr->OverPenalty)
{
if (curr->sendq.empty())
curr->OverPenalty = false;
-
- if (curr->Penalty < 10)
- Parser->DoLines(curr, true);
}
if ((curr->registered != REG_ALL) && (TIME > curr->timeout))