// Rest of the tokens are the numeric parameters, add them to NUM
- while (ts.GetToken(token))
+ while (ts.GetTrailing(token))
params.push_back(token);
}
else if ((token == "PRIVMSG") || (token == "NOTICE"))
@@ -557,7+567,7 @@ bool TreeSocket::PreProcessOldProtocolMessage(User*& who, std::string& cmd, Comm
cmd.swap(token);
// Check if the PRIVMSG/NOTICE target is a nickname
- ts.GetToken(token);
+ ts.GetMiddle(token);
if (token.c_str()[0] == '#')
{
ServerInstance->Logs->Log(MODNAME, LOG_DEBUG, "Unable to translate PUSH %s to user %s from 1202 protocol server %s, target \"%s\"", cmd.c_str(), params[0].c_str(), this->MyRoot->GetName().c_str(), token.c_str());
@@ -565,7+575,7 @@ bool TreeSocket::PreProcessOldProtocolMessage(User*& who, std::string& cmd, Comm