diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2007-08-23 18:06:26 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2007-08-23 18:06:26 +0000 |
commit | deb85740798d3438563628736c0e83edb6966b6e (patch) | |
tree | a8ad119fa9d1624a174cded210aba05a1af36173 /src/cmd_ison.cpp | |
parent | 3f3d3d302899aacf8b49fcc871265c965d1fb0fc (diff) |
Add some stuff to change how we process a token sepeperated stream
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7800 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/cmd_ison.cpp')
-rw-r--r-- | src/cmd_ison.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/cmd_ison.cpp b/src/cmd_ison.cpp index d050af982..e50634f78 100644 --- a/src/cmd_ison.cpp +++ b/src/cmd_ison.cpp @@ -54,8 +54,9 @@ CmdResult cmd_ison::Handle (const char** parameters, int pcnt, userrec *user) /* Its a space seperated list of nicks (RFC1459 says to support this) */ irc::spacesepstream list(parameters[i]); - std::string item("*"); - while (((item = list.GetToken()) != "")) + std::string item; + + while (list.GetToken(item)) { u = ServerInstance->FindNick(item); if (ison_already.find(u) != ison_already.end()) |