]> git.netwichtig.de Git - user/henk/code/inspircd.git/commitdiff
Parse CAPAB CAPABILITIES and FJOIN messages with spacesepstream.
authorPeter Powell <petpow@saberuk.com>
Fri, 10 Aug 2018 06:00:02 +0000 (07:00 +0100)
committerPeter Powell <petpow@saberuk.com>
Fri, 10 Aug 2018 12:55:32 +0000 (13:55 +0100)
Special tokenisation rules are not necessary here.

src/modules/m_spanningtree/capab.cpp
src/modules/m_spanningtree/fjoin.cpp

index 342945c3aa921c3d330e5e243264380d7c0e2b03..256a3d069baae8ee6d7fba78ccfbcda543ccd768 100644 (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))
                {
index 61c5313a82b5af66870c16e325848f70ddd769cc..a6c52e41b66af85c8eb9d392d38cfd0a5a686624 100644 (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))