summaryrefslogtreecommitdiff
path: root/src/commands/cmd_ison.cpp
diff options
context:
space:
mode:
authorDaniel De Graaf <danieldg@inspircd.org>2010-04-02 10:39:15 -0500
committerDaniel De Graaf <danieldg@inspircd.org>2010-04-02 10:39:15 -0500
commit3cf993500544c2157992650da2487bfa89be405d (patch)
tree6c90eba384e2361114752a28a166ef4d1fe6d80b /src/commands/cmd_ison.cpp
parentcd6b7a8cda83f54679634624e84e92b91cf80683 (diff)
Use FindNickOnly in a few commands to prevent enumerating users via UID walking
Diffstat (limited to 'src/commands/cmd_ison.cpp')
-rw-r--r--src/commands/cmd_ison.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/commands/cmd_ison.cpp b/src/commands/cmd_ison.cpp
index 1d92ad3ca..f964c7442 100644
--- a/src/commands/cmd_ison.cpp
+++ b/src/commands/cmd_ison.cpp
@@ -54,7 +54,7 @@ CmdResult CommandIson::Handle (const std::vector<std::string>& parameters, User
for (unsigned int i = 0; i < parameters.size(); i++)
{
- u = ServerInstance->FindNick(parameters[i]);
+ u = ServerInstance->FindNickOnly(parameters[i]);
if (ison_already.find(u) != ison_already.end())
continue;
@@ -79,7 +79,7 @@ CmdResult CommandIson::Handle (const std::vector<std::string>& parameters, User
while (list.GetToken(item))
{
- u = ServerInstance->FindNick(item);
+ u = ServerInstance->FindNickOnly(item);
if (ison_already.find(u) != ison_already.end())
continue;