diff options
Diffstat (limited to 'src/command_parse.cpp')
| -rw-r--r-- | src/command_parse.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/command_parse.cpp b/src/command_parse.cpp index f84df3342..71fce09fd 100644 --- a/src/command_parse.cpp +++ b/src/command_parse.cpp @@ -273,9 +273,10 @@ void CommandParser::ProcessCommand(userrec *user, std::string &cmd) const char *command_p[127]; int items = 0; irc::tokenstream tokens(cmd); - std::string command = tokens.GetToken(); + std::string command; + tokens.GetToken(command); - while (((para[items] = tokens.GetToken()) != "") && (items < 127)) + while (tokens.GetToken(para[items]) && (items < 127)) { command_p[items] = para[items].c_str(); items++; |
