summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-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 0be458d57..d6e5f3c56 100644
--- a/src/command_parse.cpp
+++ b/src/command_parse.cpp
@@ -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))