diff --git a/extensions/helpops.c b/extensions/helpops.c index 58dc8e02..1dc4ea6c 100644 --- a/extensions/helpops.c +++ b/extensions/helpops.c @@ -156,10 +156,16 @@ h_hdl_stats_request(void *data) count++; - sendto_one_numeric(hdata->client, RPL_STATSDEBUG, - "p :%s (%s@%s)", - target_p->name, target_p->username, - target_p->host); + 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, + "p :%s (%s@%s)", + target_p->name, target_p->username, target_p->host); } sendto_one_numeric(hdata->client, RPL_STATSDEBUG,