diff options
-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", |