X-Git-Url: https://jfr.im/git/irc/rqf/shadowircd.git/blobdiff_plain/76d4968137b7421cadd063eb3f59134be09cb3fc..3c6fb31a4bb6580e3295fdec5d4687eafb487251:/modules/m_stats.c diff --git a/modules/m_stats.c b/modules/m_stats.c index 3b08b5d..29e7c7e 100644 --- a/modules/m_stats.c +++ b/modules/m_stats.c @@ -101,6 +101,7 @@ static void stats_klines(struct Client *); static void stats_messages(struct Client *); static void stats_dnsbl(struct Client *); static void stats_oper(struct Client *); +static void stats_privset(struct Client *); static void stats_operedup(struct Client *); static void stats_ports(struct Client *); static void stats_tresv(struct Client *); @@ -148,7 +149,7 @@ static struct StatsStruct stats_cmd_table[] = { {'M', stats_messages, 0, 0, }, {'n', stats_dnsbl, 0, 0, }, {'o', stats_oper, 0, 0, }, - {'O', stats_oper, 0, 0, }, + {'O', stats_privset, 1, 0, }, {'p', stats_operedup, 0, 0, }, {'P', stats_ports, 0, 0, }, {'q', stats_tresv, 1, 0, }, @@ -173,7 +174,6 @@ static struct StatsStruct stats_cmd_table[] = { /* * m_stats by fl_ - * parv[0] = sender prefix * parv[1] = stat letter/command * parv[2] = (if present) server/mask in stats L, or target * @@ -678,6 +678,11 @@ stats_oper(struct Client *source_p) } } +static void +stats_privset(struct Client *source_p) +{ + privilegeset_report(source_p); +} /* stats_operedup() *