]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_shun.cpp
Switch from std::stringstream to irc::spacesepstream.
[user/henk/code/inspircd.git] / src / modules / m_shun.cpp
index 28faf898b061aa0d6bb3247285b8baed8fa072e6..417d67b69fd1df260358c8e50417d814b3091719 100644 (file)
@@ -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);
                }