summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/command_parse.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/command_parse.cpp b/src/command_parse.cpp
index 173348338..0be458d57 100644
--- a/src/command_parse.cpp
+++ b/src/command_parse.cpp
@@ -270,7 +270,7 @@ bool CommandParser::ProcessCommand(User *user, std::string &cmd)
if (*command.c_str() == ':')
tokens.GetToken(command);
- while (tokens.GetToken(token) && (command_p.size() < MAXPARAMETERS))
+ while (tokens.GetToken(token) && (command_p.size() <= MAXPARAMETERS))
command_p.push_back(token);
std::transform(command.begin(), command.end(), command.begin(), ::toupper);