diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/command_parse.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/command_parse.cpp b/src/command_parse.cpp index 11f4b4635..1545c8e1b 100644 --- a/src/command_parse.cpp +++ b/src/command_parse.cpp @@ -320,7 +320,10 @@ void CommandParser::ProcessCommand(userrec *user, std::string &cmd) std::string command = tokens.GetToken(); while (((para[items] = tokens.GetToken()) != "") && (items < 127)) - command_p[items] = para[items++].c_str(); + { + command_p[items] = para[items].c_str(); + items++; + } std::transform(command.begin(), command.end(), command.begin(), ::toupper); |