]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/command_parse.cpp
Move ugly .*.inc files into make/template/ where they can be more easily found
[user/henk/code/inspircd.git] / src / command_parse.cpp
index fe0aab3b98247d45a96333a7c1688b981087303f..6dd4e663e04726411b63c904d201faab6d5b785f 100644 (file)
@@ -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()));
        }