summaryrefslogtreecommitdiff
path: root/src/command_parse.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/command_parse.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/command_parse.cpp')
-rw-r--r--src/command_parse.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/command_parse.cpp b/src/command_parse.cpp
index f3ff69c96..1701a7366 100644
--- a/src/command_parse.cpp
+++ b/src/command_parse.cpp
@@ -304,9 +304,13 @@ bool CommandParser::ProcessCommand(User *user, std::string &cmd)
/* Modify the user's penalty */
user->Penalty += cm->second->Penalty;
+ ServerInstance->Log(DEBUG,"Penalty for %s is now incremented to %d (%d added on)", user->nick, user->Penalty, cm->second->Penalty);
bool do_more = (user->Penalty < 10);
- if (do_more)
+ if (!do_more)
+ {
user->OverPenalty = true;
+ ServerInstance->Log(DEBUG,"User %s now OVER penalty of 10", user->nick);
+ }
/* activity resets the ping pending timer */
user->nping = ServerInstance->Time() + user->pingmax;