diff options
author | michael <michael@82007160-df01-0410-b94d-b575c5fd34c7> | 2013-04-30 15:21:20 +0000 |
---|---|---|
committer | michael <michael@82007160-df01-0410-b94d-b575c5fd34c7> | 2013-04-30 15:21:20 +0000 |
commit | 35ea437624a25391820c9e3e6cc5ef7da5a85974 (patch) | |
tree | 49264280a1b0bc4cf6c65131ae657c3a6927a81c /modules | |
parent | 7ba5d74ff6ca48eb7d3c1cd1e3c826c807f392a1 (diff) |
- "STATS o" now shows how many times an oper{} block has been used.
Just like "STATS x|q"
git-svn-id: svn://svn.ircd-hybrid.org/svnroot/ircd-hybrid/branches/8.1.x@1924 82007160-df01-0410-b94d-b575c5fd34c7
Diffstat (limited to 'modules')
-rw-r--r-- | modules/m_challenge.c | 1 | ||||
-rw-r--r-- | modules/m_oper.c | 1 | ||||
-rw-r--r-- | modules/m_stats.c | 4 |
3 files changed, 4 insertions, 2 deletions
diff --git a/modules/m_challenge.c b/modules/m_challenge.c index 9965b8e..7fd5fe4 100644 --- a/modules/m_challenge.c +++ b/modules/m_challenge.c @@ -106,6 +106,7 @@ m_challenge(struct Client *client_p, struct Client *source_p, return; } + ++conf->count; oper_up(source_p); ilog(LOG_TYPE_OPER, "OPER %s by %s!%s@%s", diff --git a/modules/m_oper.c b/modules/m_oper.c index 9aef1bc..ea26190 100644 --- a/modules/m_oper.c +++ b/modules/m_oper.c @@ -105,6 +105,7 @@ m_oper(struct Client *client_p, struct Client *source_p, return; } + ++conf->count; oper_up(source_p); ilog(LOG_TYPE_OPER, "OPER %s by %s!%s@%s", diff --git a/modules/m_stats.c b/modules/m_stats.c index fcd996d..8f9288c 100644 --- a/modules/m_stats.c +++ b/modules/m_stats.c @@ -149,12 +149,12 @@ report_confitem_types(struct Client *source_p, enum maskitem_type type) /* Don't allow non opers to see oper privs */ if (HasUMode(source_p, UMODE_OPER)) sendto_one(source_p, form_str(RPL_STATSOLINE), - me.name, source_p->name, 'O', conf->user, conf->host, + me.name, source_p->name, 'O', conf->count, conf->user, conf->host, conf->name, oper_privs_as_string(conf->port), conf->class ? conf->class->name : "<default>"); else sendto_one(source_p, form_str(RPL_STATSOLINE), - me.name, source_p->name, 'O', conf->user, conf->host, + me.name, source_p->name, 'O', conf->count, conf->user, conf->host, conf->name, "0", conf->class ? conf->class->name : "<default>"); } |