modules/m_whois: Allow clients to see their own umodes when whoising themselves

This commit is contained in:
Sam Dodrill 2013-12-27 09:32:49 -08:00
parent 0785419045
commit 2f35248278
1 changed files with 1 additions and 1 deletions

View File

@ -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++ = '+';