From 106043620278abc0755377544cfe012c84de4abc Mon Sep 17 00:00:00 2001 From: peavey Date: Mon, 19 Oct 2009 18:32:11 +0000 Subject: Add a setting to allowing the threshold for activation of the penalty system to be set in the configuration, or be disabled by setting it to 0. [jackmcbarn] git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11922 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 fe0aab3b9..6dd4e663e 100644 --- a/src/command_parse.cpp +++ b/src/command_parse.cpp @@ -253,7 +253,7 @@ bool CommandParser::ProcessCommand(User *user, std::string &cmd) { // If it *doesn't* exist, give it a slightly heftier penalty than normal to deter flooding us crap user->IncreasePenalty(cm != cmdlist.end() ? cm->second->Penalty : 2); - do_more = (user->Penalty < 10); + do_more = (user->GetClass()->GetPenaltyThreshold() && ((unsigned long)user->Penalty < user->GetClass()->GetPenaltyThreshold())); } -- cgit v1.3.1-10-gc9f91