From bc889c6e866e0570ecb44b6fe030e030bc0715f0 Mon Sep 17 00:00:00 2001 From: Attila Molnar Date: Wed, 3 Sep 2014 14:28:57 +0200 Subject: Compare Limits.MaxModes to the size of LastChangeList in ModeParser::Process() --- src/mode.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mode.cpp b/src/mode.cpp index 8081188f5..5ed156bda 100644 --- a/src/mode.cpp +++ b/src/mode.cpp @@ -479,7 +479,7 @@ void ModeParser::Process(const std::vector& parameters, User* user, if ((output_mode.length() + output_parameters.length() > 450) || (output_mode.length() > 100) - || (LastParseParams.size() > ServerInstance->Config->Limits.MaxModes)) + || (LastChangeList.size() >= ServerInstance->Config->Limits.MaxModes)) { /* mode sequence is getting too long */ break; -- cgit v1.2.3