From 291efc3c427e0ecee133e104f0af3facd8685a4f Mon Sep 17 00:00:00 2001 From: brain Date: Sun, 4 May 2008 21:48:00 +0000 Subject: < 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 --- src/command_parse.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/command_parse.cpp') 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); -- cgit v1.3.1-10-gc9f91