]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/userprocess.cpp
Move some stuff around so the last penalty line doesnt get held erroneously until...
[user/henk/code/inspircd.git] / src / userprocess.cpp
index 41c5ae4cd73b78941dc8d5c5e16ad94e6d39a553..68c469aacd7a344c1f1d6810caac285ac0fa71e9 100644 (file)
@@ -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))