size_t separator = message.find(' ', position);
if (separator == std::string::npos)
{
- token.assign(message, position);
+ token.assign(message, position, std::string::npos);
position = message.length();
return true;
}
// If this is true then we have a <trailing> token!
if (message[position] == ':')
{
- token.assign(message, position + 1);
+ token.assign(message, position + 1, std::string::npos);
position = message.length();
- ServerInstance->Logs->Log("HASHCOMP", LOG_DEBUG, "TRAILING %s next (none)", token.c_str());
return true;
}