summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormichael <michael@82007160-df01-0410-b94d-b575c5fd34c7>2013-11-20 23:01:05 +0000
committermichael <michael@82007160-df01-0410-b94d-b575c5fd34c7>2013-11-20 23:01:05 +0000
commit27633cbdcb639e0586fb39350640e05757c1b9ea (patch)
treeeff5e5798d1f13e21318823e124ed0fd5ed090a3
parent5c8569a24c2580068dfb768bf5e7fb0c383c20b3 (diff)
- client.c:find_person(): completely disallow UID guessing as suggested by Adam <adam@anope.org>
git-svn-id: svn://svn.ircd-hybrid.org/svnroot/ircd-hybrid/branches/8.1.x@2582 82007160-df01-0410-b94d-b575c5fd34c7
-rw-r--r--src/client.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/client.c b/src/client.c
index 575d411..988270a 100644
--- a/src/client.c
+++ b/src/client.c
@@ -513,12 +513,8 @@ find_person(const struct Client *client_p, const char *name)
if (IsDigit(*name))
{
if ((target_p = hash_find_id(name)) != NULL)
- {
- /* invisible users shall not be found by UID guessing */
- if (HasUMode(target_p, UMODE_INVISIBLE))
- if (!IsServer(client_p) && !HasFlag(client_p, FLAGS_SERVICE))
- target_p = NULL;
- }
+ if (!IsServer(client_p) && !HasFlag(client_p, FLAGS_SERVICE))
+ target_p = NULL;
}
else
target_p = hash_find_client(name);