summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2007-10-21 18:08:48 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2007-10-21 18:08:48 +0000
commit9ecfbdd8c0be6bcbd283382ed6e027a6c70b2d20 (patch)
treea1294623529703bd0f4e67b892f4ce0d1e03982e /src
parente3ffe49bbee924f904edcceb0aadad841200555d (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.cpp2
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)