- while ((pars[x] = ss.GetToken()) != "")
- {
- parv[x] = pars[x].c_str();
- ServerInstance->Log(DEBUG,"Parameter %d: %s", x, parv[x]);
- x++;
- }
-
- ServerInstance->Log(DEBUG,"Call command handler on %s", parv[0]);
+ irc::tokenstream ss(newline);
+ pars.clear();
+ std::string command, token;