- CommandBase::Params command_p;
- irc::tokenstream tokens(cmd);
- std::string command, token;
- tokens.GetMiddle(command);
-
- /* A client sent a nick prefix on their command (ick)
- * rhapsody and some braindead bouncers do this --
- * the rfc says they shouldnt but also says the ircd should
- * discard it if they do.
- */
- if (command[0] == ':')
- tokens.GetMiddle(command);
-
- while (tokens.GetTrailing(token))
- command_p.push_back(token);
-
- std::transform(command.begin(), command.end(), command.begin(), ::toupper);
-