* 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))
+ while (tokens.GetToken(token) && (command_p.size() <= MAXPARAMETERS))
command_p.push_back(token);
std::transform(command.begin(), command.end(), command.begin(), ::toupper);