summaryrefslogtreecommitdiff
path: root/src/cmd_ison.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/cmd_ison.cpp')
-rw-r--r--src/cmd_ison.cpp5
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())