diff options
author | Attila Molnar <attilamolnar@hush.com> | 2014-09-03 14:28:57 +0200 |
---|---|---|
committer | Attila Molnar <attilamolnar@hush.com> | 2014-09-03 14:28:57 +0200 |
commit | bc889c6e866e0570ecb44b6fe030e030bc0715f0 (patch) | |
tree | 2bcc6c6b29e9594f2b22e282b9f419d0516124e8 | |
parent | b9006ce3cba742ca2a22d601ba1a63a47b0402c9 (diff) |
Compare Limits.MaxModes to the size of LastChangeList in ModeParser::Process()
-rw-r--r-- | src/mode.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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<std::string>& 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; |