From 9ecfbdd8c0be6bcbd283382ed6e027a6c70b2d20 Mon Sep 17 00:00:00 2001 From: brain Date: Sun, 21 Oct 2007 18:08:48 +0000 Subject: 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 --- src/command_parse.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/command_parse.cpp') 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) -- cgit v1.2.3