From 0658d22f6927a784aa5cb2c3194512de02835814 Mon Sep 17 00:00:00 2001 From: michael Date: Mon, 6 Jan 2014 19:12:07 +0000 Subject: - m_whois.c:do_whois(): get it to work with UIDs. Spotted and fixed by Adam. git-svn-id: svn://svn.ircd-hybrid.org/svnroot/ircd-hybrid/branches/8.1.x@2783 82007160-df01-0410-b94d-b575c5fd34c7 --- modules/m_whois.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/m_whois.c b/modules/m_whois.c index e4b6eca..858f865 100644 --- a/modules/m_whois.c +++ b/modules/m_whois.c @@ -201,7 +201,7 @@ do_whois(struct Client *source_p, const char *name) { struct Client *target_p = NULL; - if ((target_p = hash_find_client(name)) && IsClient(target_p)) + if ((target_p = find_person(source_p->from, name))) whois_person(source_p, target_p); else if (!IsDigit(*name)) sendto_one(source_p, form_str(ERR_NOSUCHNICK), -- cgit