From 2311a4b6f75a17917e5da78e684f601d49f536de Mon Sep 17 00:00:00 2001 From: brain Date: Sun, 21 Oct 2007 14:30:58 +0000 Subject: 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 --- src/userprocess.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/userprocess.cpp') 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)) -- cgit v1.2.3