modules/m_whois: Server hiding in WHOIS
This commit is contained in:
parent
7dfd0a40cc
commit
5fdbc1ebfb
|
@ -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);
|
||||||
|
|
||||||
sendto_one_numeric(source_p, RPL_WHOISSERVER, form_str(RPL_WHOISSERVER),
|
if(IsOper(source_p)) {
|
||||||
target_p->name, target_p->servptr->name,
|
sendto_one_numeric(source_p, RPL_WHOISSERVER, form_str(RPL_WHOISSERVER),
|
||||||
target_p->servptr->info);
|
target_p->name, target_p->servptr->name,
|
||||||
|
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),
|
||||||
|
|
Loading…
Reference in New Issue