diff options
| author | 2018-08-10 07:00:02 +0100 | |
|---|---|---|
| committer | 2018-08-10 13:55:32 +0100 | |
| commit | 36899e44eec416f5cd74cfe2d61baa984963dbe0 (patch) | |
| tree | 9adefb978ab6a03367b393ec35694d98d36be59a /src/modules/m_spanningtree | |
| parent | Remove the original line parameter of On{Pre,Post}Command. (diff) | |
Parse CAPAB CAPABILITIES and FJOIN messages with spacesepstream.
Special tokenisation rules are not necessary here.
Diffstat (limited to 'src/modules/m_spanningtree')
| -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)) |
