diff options
author | Attila Molnar <attilamolnar@hush.com> | 2014-04-04 18:30:02 +0200 |
---|---|---|
committer | Attila Molnar <attilamolnar@hush.com> | 2014-04-04 18:30:02 +0200 |
commit | 23183603b7ea3b2a50ce082d573bef07ab794686 (patch) | |
tree | e6076a2aeeac67c6dca294f83b30f9d326d24d70 /src/commands/cmd_ison.cpp | |
parent | 957676efd8e1330f1e1314046376f3d9dd1eab18 (diff) |
Add REG_ALL checks to treat unregistered users as nonexistent in more cases
Diffstat (limited to 'src/commands/cmd_ison.cpp')
-rw-r--r-- | src/commands/cmd_ison.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/commands/cmd_ison.cpp b/src/commands/cmd_ison.cpp index 227f1b3ed..01d12e13b 100644 --- a/src/commands/cmd_ison.cpp +++ b/src/commands/cmd_ison.cpp @@ -56,7 +56,7 @@ CmdResult CommandIson::Handle (const std::vector<std::string>& parameters, User if (ison_already.find(u) != ison_already.end()) continue; - if (u) + if ((u) && (u->registered == REG_ALL)) { reply.append(u->nick).append(" "); if (reply.length() > 450) @@ -81,7 +81,7 @@ CmdResult CommandIson::Handle (const std::vector<std::string>& parameters, User if (ison_already.find(u) != ison_already.end()) continue; - if (u) + if ((u) && (u->registered == REG_ALL)) { reply.append(u->nick).append(" "); if (reply.length() > 450) |