modules/m_whois: Server hiding in WHOIS

This commit is contained in:
Sam Dodrill 2014-05-28 17:03:09 -07:00
parent 7dfd0a40cc
commit 5fdbc1ebfb
1 changed files with 8 additions and 3 deletions

View File

@ -307,9 +307,14 @@ single_whois(struct Client *source_p, struct Client *target_p, int operspy)
if(cur_len > mlen + extra_space) if(cur_len > mlen + extra_space)
sendto_one(source_p, "%s", buf); sendto_one(source_p, "%s", buf);
if(IsOper(source_p)) {
sendto_one_numeric(source_p, RPL_WHOISSERVER, form_str(RPL_WHOISSERVER), sendto_one_numeric(source_p, RPL_WHOISSERVER, form_str(RPL_WHOISSERVER),
target_p->name, target_p->servptr->name, target_p->name, target_p->servptr->name,
target_p->servptr->info); target_p->servptr->info);
} else {
sendto_one_numeric(source_p, RPL_WHOISSERVER, form_str(RPL_WHOISSERVER),
target_p->name, "irc.server", "An IRC server");
}
if(target_p->user->away) if(target_p->user->away)
sendto_one_numeric(source_p, RPL_AWAY, form_str(RPL_AWAY), sendto_one_numeric(source_p, RPL_AWAY, form_str(RPL_AWAY),