diff options
| author | 2007-08-23 18:06:50 +0000 | |
|---|---|---|
| committer | 2007-08-23 18:06:50 +0000 | |
| commit | b72653db1a75223699050145be060e5481ecead9 (patch) | |
| tree | 25d647bef0ca7aceea8da3ae555ff1051f22914e /src/cmd_ison.cpp | |
| parent | Fix for irc::sepstream for when there are multiple seperators in a row, do no... (diff) | |
Add some stuff to change how we process a token sepeperated stream
git-svn-id: http://svn.inspircd.org/repository/branches/1_1_stable@7801 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()) |
