helpops: show opernames to opers
This commit is contained in:
parent
430833dca2
commit
54f05581ab
1 changed files with 10 additions and 4 deletions
|
@ -156,10 +156,16 @@ h_hdl_stats_request(void *data)
|
||||||
|
|
||||||
count++;
|
count++;
|
||||||
|
|
||||||
|
if (IsOper(hdata->client) && SeesOper(target_p, hdata->client)
|
||||||
|
&& !EmptyString(target_p->user->opername))
|
||||||
|
sendto_one_numeric(hdata->client, RPL_STATSDEBUG,
|
||||||
|
"p :%s (%s@%s) {%s}",
|
||||||
|
target_p->name, target_p->username, target_p->host,
|
||||||
|
target_p->user->opername);
|
||||||
|
else
|
||||||
sendto_one_numeric(hdata->client, RPL_STATSDEBUG,
|
sendto_one_numeric(hdata->client, RPL_STATSDEBUG,
|
||||||
"p :%s (%s@%s)",
|
"p :%s (%s@%s)",
|
||||||
target_p->name, target_p->username,
|
target_p->name, target_p->username, target_p->host);
|
||||||
target_p->host);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
sendto_one_numeric(hdata->client, RPL_STATSDEBUG,
|
sendto_one_numeric(hdata->client, RPL_STATSDEBUG,
|
||||||
|
|
Loading…
Reference in a new issue