diff options
-rw-r--r-- | modules/m_whois.c | 2 |
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), |