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 | |
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
-rw-r--r-- | modules/m_challenge.c | 1 | ||||
-rw-r--r-- | modules/m_oper.c | 1 | ||||
-rw-r--r-- | modules/m_stats.c | 4 | ||||
-rw-r--r-- | src/numeric.c | 2 |
4 files changed, 5 insertions, 3 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>"); } diff --git a/src/numeric.c b/src/numeric.c index f144c0a..b7fee5b 100644 --- a/src/numeric.c +++ b/src/numeric.c @@ -270,7 +270,7 @@ static const char *replies[] = { /* 240 */ NULL, /* 241 RPL_STATSLLINE */ ":%s 241 %s %c %s * %s %d %s", /* 242 RPL_STATSUPTIME */ ":%s 242 %s :Server Up %d days, %d:%02d:%02d", -/* 243 RPL_STATSOLINE */ ":%s 243 %s %c %s@%s * %s %s %s", +/* 243 RPL_STATSOLINE */ ":%s 243 %s %c %u %s@%s * %s %s %s", /* 244 RPL_STATSHLINE */ ":%s 244 %s %c %s * %s %d %s", /* 245 */ NULL, /* 246 RPL_STATSSERVICE */ ":%s 246 %s %c %s * %s %d %d", |