From 27633cbdcb639e0586fb39350640e05757c1b9ea Mon Sep 17 00:00:00 2001 From: michael Date: Wed, 20 Nov 2013 23:01:05 +0000 Subject: - client.c:find_person(): completely disallow UID guessing as suggested by Adam git-svn-id: svn://svn.ircd-hybrid.org/svnroot/ircd-hybrid/branches/8.1.x@2582 82007160-df01-0410-b94d-b575c5fd34c7 --- src/client.c | 8 ++------ 1 file 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); -- cgit