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
This commit is contained in:
brain 2006-09-10 15:11:49 +00:00
parent 5401a6e5a6
commit afd808e442

View File

@ -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);