mirror of
https://github.com/inspircd/inspircd.git
synced 2025-03-10 02:59:01 -04:00
Parse CAPAB CAPABILITIES and FJOIN messages with spacesepstream.
Special tokenisation rules are not necessary here.
This commit is contained in:
parent
213e4d9680
commit
36899e44ee
@ -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))
|
||||
{
|
||||
|
@ -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))
|
||||
|
Loading…
x
Reference in New Issue
Block a user