aboutsummaryrefslogtreecommitdiffstats
path: root/src/modules/m_shun.cpp
diff options
context:
space:
mode:
authorGravatar Peter Powell2017-10-19 11:55:17 +0100
committerGravatar Peter Powell2017-10-19 14:58:21 +0100
commit3c7e105d09c99ed0b74a63bef68d5f2a1cbd8cff (patch)
treec0fc69bbcd77322a7ea2fad4bb32a5c107479041 /src/modules/m_shun.cpp
parentAdd 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_shun.cpp')
-rw-r--r--src/modules/m_shun.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/modules/m_shun.cpp b/src/modules/m_shun.cpp
index 28faf898b..417d67b69 100644
--- a/src/modules/m_shun.cpp
+++ b/src/modules/m_shun.cpp
@@ -217,10 +217,10 @@ class ModuleShun : public Module
ShunEnabledCommands.clear();
- std::stringstream dcmds(cmds);
+ irc::spacesepstream dcmds(cmds);
std::string thiscmd;
- while (dcmds >> thiscmd)
+ while (dcmds.GetToken(thiscmd))
{
ShunEnabledCommands.insert(thiscmd);
}