]> 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 0be458d57aad91a21da9dfc143da2050da5763ef..d6e5f3c56bc2d19014daafb9e8f9c8c6675a3d7e 100644 (file)
@@ -267,7 +267,7 @@ 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))