summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormichael <michael@82007160-df01-0410-b94d-b575c5fd34c7>2014-01-06 19:12:07 +0000
committermichael <michael@82007160-df01-0410-b94d-b575c5fd34c7>2014-01-06 19:12:07 +0000
commit0658d22f6927a784aa5cb2c3194512de02835814 (patch)
treef884a56503d13ea95c5eaafd8c94b33480bae9e2
parentea14b9ec2bec4c6fbdcb7f7ca2498299179c6c59 (diff)
- 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
-rw-r--r--modules/m_whois.c2
1 files changed, 1 insertions, 1 deletions
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),