diff options
| author | 2017-10-19 11:55:17 +0100 | |
|---|---|---|
| committer | 2017-10-19 14:58:21 +0100 | |
| commit | 3c7e105d09c99ed0b74a63bef68d5f2a1cbd8cff (patch) | |
| tree | c0fc69bbcd77322a7ea2fad4bb32a5c107479041 /src/modules/m_opermodes.cpp | |
| parent | Add a constructor to OperInfo and use it to set the type name. (diff) | |
Switch from std::stringstream to irc::spacesepstream.
The latter is more suited to the things we have previously been
using std::stringstream for.
Diffstat (limited to 'src/modules/m_opermodes.cpp')
| -rw-r--r-- | src/modules/m_opermodes.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/modules/m_opermodes.cpp b/src/modules/m_opermodes.cpp index 33ebb57a0..6a18e9c9d 100644 --- a/src/modules/m_opermodes.cpp +++ b/src/modules/m_opermodes.cpp @@ -52,12 +52,12 @@ class ModuleModesOnOper : public Module smodes = "+" + smodes; std::string buf; - std::stringstream ss(smodes); + irc::spacesepstream ss(smodes); std::vector<std::string> modes; modes.push_back(u->nick); // split into modes and mode params - while (ss >> buf) + while (ss.GetToken(buf)) modes.push_back(buf); ServerInstance->Parser.CallHandler("MODE", modes, u); |
