summaryrefslogtreecommitdiff
path: root/src/userprocess.cpp
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2007-10-21 14:18:43 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2007-10-21 14:18:43 +0000
commit317c0288c8d98750d47a98fdc0af1691089279d2 (patch)
treedca32b988db9d9a7d8e42808559153b95b3c051a /src/userprocess.cpp
parent6856c87ae51d655870607c6e74e0eed6d338283a (diff)
Yay, all works!
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8251 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/userprocess.cpp')
-rw-r--r--src/userprocess.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/userprocess.cpp b/src/userprocess.cpp
index 75f0da0ee..b65d566f8 100644
--- a/src/userprocess.cpp
+++ b/src/userprocess.cpp
@@ -122,7 +122,9 @@ void ProcessUserHandler::Call(User* cu)
return;
}
- Server->Parser->DoLines(current);
+ /* If user is over penalty, dont process here, just build up */
+ if (!current->OverPenalty)
+ Server->Parser->DoLines(current);
return;
}
@@ -161,11 +163,15 @@ void InspIRCd::DoBackgroundUserStuff()
User *curr = *count2;
if (curr->OverPenalty)
+ {
+ Log(DEBUG,"Process line over penalty for %s", curr->nick);
Parser->DoLines(curr, true);
+ }
/* Knock a second off */
if (curr->Penalty)
{
+ Log(DEBUG,"Penalty for %s decremented to %d", curr->nick, curr->Penalty);
curr->Penalty--;
if (!curr->Penalty)
curr->OverPenalty = false;