diff options
author | Peter Powell <petpow@saberuk.com> | 2018-08-10 07:00:02 +0100 |
---|---|---|
committer | Peter Powell <petpow@saberuk.com> | 2018-08-10 13:55:32 +0100 |
commit | 36899e44eec416f5cd74cfe2d61baa984963dbe0 (patch) | |
tree | 9adefb978ab6a03367b393ec35694d98d36be59a | |
parent | 213e4d9680e427bc16b94c0c1b627919cacb171b (diff) |
Parse CAPAB CAPABILITIES and FJOIN messages with spacesepstream.
Special tokenisation rules are not necessary here.
-rw-r--r-- | src/modules/m_spanningtree/capab.cpp | 2 | ||||
-rw-r--r-- | src/modules/m_spanningtree/fjoin.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/modules/m_spanningtree/capab.cpp b/src/modules/m_spanningtree/capab.cpp index 342945c3a..256a3d069 100644 --- a/src/modules/m_spanningtree/capab.cpp +++ b/src/modules/m_spanningtree/capab.cpp @@ -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)) { diff --git a/src/modules/m_spanningtree/fjoin.cpp b/src/modules/m_spanningtree/fjoin.cpp index 61c5313a8..a6c52e41b 100644 --- a/src/modules/m_spanningtree/fjoin.cpp +++ b/src/modules/m_spanningtree/fjoin.cpp @@ -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)) |