diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2007-10-21 14:33:14 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2007-10-21 14:33:14 +0000 |
commit | ed2ca79021610d1042787c40fc8cb926d7b4090d (patch) | |
tree | b95fee8df443123474d0ed9f4dec32494a345ab8 /src/command_parse.cpp | |
parent | 2311a4b6f75a17917e5da78e684f601d49f536de (diff) |
Add the check for user->ExemptFromPenalty
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8255 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/command_parse.cpp')
-rw-r--r-- | src/command_parse.cpp | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/src/command_parse.cpp b/src/command_parse.cpp index 1701a7366..190ade6be 100644 --- a/src/command_parse.cpp +++ b/src/command_parse.cpp @@ -303,13 +303,17 @@ 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) + bool do_more = true; + if (!user->ExemptFromPenalty) { - user->OverPenalty = true; - ServerInstance->Log(DEBUG,"User %s now OVER penalty of 10", user->nick); + 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); + do_more = (user->Penalty < 10); + if (!do_more) + { + user->OverPenalty = true; + ServerInstance->Log(DEBUG,"User %s now OVER penalty of 10", user->nick); + } } /* activity resets the ping pending timer */ |