From 2f352482781935b8b622249e7aa58dc8d773af05 Mon Sep 17 00:00:00 2001 From: Sam Dodrill Date: Fri, 27 Dec 2013 09:32:49 -0800 Subject: [PATCH] modules/m_whois: Allow clients to see their own umodes when whoising themselves --- 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 3fc8f12..dd1b7ee 100644 --- a/modules/m_whois.c +++ b/modules/m_whois.c @@ -342,7 +342,7 @@ single_whois(struct Client *source_p, struct Client *target_p, int operspy) sendto_one_numeric(source_p, RPL_WHOISBOT, form_str(RPL_WHOISBOT), target_p->name); - if(IsOper(source_p)) + if(IsOper(source_p) || source_p == target_p) { m = buf; *m++ = '+';