diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2007-10-21 18:08:48 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2007-10-21 18:08:48 +0000 |
commit | 9ecfbdd8c0be6bcbd283382ed6e027a6c70b2d20 (patch) | |
tree | a1294623529703bd0f4e67b892f4ce0d1e03982e /src | |
parent | e3ffe49bbee924f904edcceb0aadad841200555d (diff) |
Use the new IncreasePenalty rather than directly using += on the Penalty value.
Maybe the penalty value should be private and there should be an accessor, GetPenalty()?
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8266 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src')
-rw-r--r-- | src/command_parse.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/command_parse.cpp b/src/command_parse.cpp index 190ade6be..fdc36d26c 100644 --- a/src/command_parse.cpp +++ b/src/command_parse.cpp @@ -306,7 +306,7 @@ bool CommandParser::ProcessCommand(User *user, std::string &cmd) bool do_more = true; if (!user->ExemptFromPenalty) { - user->Penalty += cm->second->Penalty; + user->IncreasePenalty(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) |