Parse CAPAB CAPABILITIES and FJOIN messages with spacesepstream.

Special tokenisation rules are not necessary here.
This commit is contained in:
Peter Powell 2018-08-10 07:00:02 +01:00
parent 213e4d9680
commit 36899e44ee
2 changed files with 2 additions and 2 deletions

View File

@ -428,7 +428,7 @@ bool TreeSocket::Capab(const CommandBase::Params& params)
}
else if ((params[0] == "CAPABILITIES") && (params.size() == 2))
{
irc::tokenstream capabs(params[1]);
irc::spacesepstream capabs(params[1]);
std::string item;
while (capabs.GetToken(item))
{

View File

@ -179,7 +179,7 @@ CmdResult CommandFJoin::Handle(User* srcuser, Params& params)
FwdFJoinBuilder fwdfjoin(chan, sourceserver);
// Process every member in the message
irc::tokenstream users(params.back());
irc::spacesepstream users(params.back());
std::string item;
Modes::ChangeList* modechangelistptr = (apply_other_sides_modes ? &modechangelist : NULL);
while (users.GetToken(item))