]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/command_parse.cpp
fix this
[user/henk/code/inspircd.git] / src / command_parse.cpp
index 17334833860563c615647e50805bdc4e08c5d3b5..d6e5f3c56bc2d19014daafb9e8f9c8c6675a3d7e 100644 (file)
@@ -267,10 +267,10 @@ bool CommandParser::ProcessCommand(User *user, std::string &cmd)
         * the rfc says they shouldnt but also says the ircd should
         * discard it if they do.
         */
-       if (*command.c_str() == ':')
+       if (command[0] == ':')
                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);