diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2007-10-21 14:30:58 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2007-10-21 14:30:58 +0000 |
commit | 2311a4b6f75a17917e5da78e684f601d49f536de (patch) | |
tree | 4848932948e978121de7f6cac7ee131d1dd8bf5e /src | |
parent | 773afbfe3bb6ae0df1776016a080185e6094c8fb (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
Diffstat (limited to 'src')
-rw-r--r-- | src/userprocess.cpp | 7 |
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)) |