diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2008-05-04 21:48:00 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2008-05-04 21:48:00 +0000 |
commit | 291efc3c427e0ecee133e104f0af3facd8685a4f (patch) | |
tree | d661323e2f6db2fdf7093f55c317f38bd5d09873 /src/command_parse.cpp | |
parent | b7904e23726dfa497d276e193827c2e8685443eb (diff) |
< MAXPARAMETERS for the size() check here can now be <= instead
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9611 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/command_parse.cpp')
-rw-r--r-- | src/command_parse.cpp | 2 |
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); |