diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-09-10 15:11:49 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-09-10 15:11:49 +0000 |
commit | afd808e442bc4d6c4df0399518f0b58225d86de6 (patch) | |
tree | 027c4282e139722b537446ed83abc410127b57fb /src | |
parent | 5401a6e5a686149cc8ef77a1ef405218a1db9b75 (diff) |
Stop gcc prerelease (PRERELEASE? YEAH REALLY, WE HATE YOUR GUTS DEBIAN) from bitching about using ++ within an expression
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5197 e03df62e-2008-0410-955e-edbf42e46eb7
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); |