diff options
author | michael <michael@82007160-df01-0410-b94d-b575c5fd34c7> | 2013-01-24 19:26:51 +0000 |
---|---|---|
committer | michael <michael@82007160-df01-0410-b94d-b575c5fd34c7> | 2013-01-24 19:26:51 +0000 |
commit | c5f869f353a21a5ffd2d4f971402b9ebf38fb56c (patch) | |
tree | 92aaaefaa6bcc299cfa427b9142a953bc31ace89 /modules/m_stats.c | |
parent | fb40d522d9d47eaf74f2953c04b39ccdcd676682 (diff) |
- Forward-port -r1774:
- Configuration parser now does support 'year' and 'month' units
- Add support for fake idle times to /whois. Known from csircd, this
adds min_idle, and max_idle configuration directives to class{} blocks
git-svn-id: svn://svn.ircd-hybrid.org/svnroot/ircd-hybrid/trunk@1783 82007160-df01-0410-b94d-b575c5fd34c7
Diffstat (limited to 'modules/m_stats.c')
-rw-r--r-- | modules/m_stats.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/modules/m_stats.c b/modules/m_stats.c index 9f144ea..94936c8 100644 --- a/modules/m_stats.c +++ b/modules/m_stats.c @@ -920,18 +920,18 @@ stats_operedup(struct Client *source_p, int parc, char *parv[]) continue; if (MyClient(source_p) && HasUMode(source_p, UMODE_OPER)) - sendto_one(source_p, ":%s %d %s p :[%c][%s] %s (%s@%s) Idle: %d", + sendto_one(source_p, ":%s %d %s p :[%c][%s] %s (%s@%s) Idle: %u", from, RPL_STATSDEBUG, to, HasUMode(target_p, UMODE_ADMIN) ? 'A' : 'O', oper_privs_as_string(target_p->localClient->operflags), target_p->name, target_p->username, target_p->host, - (int)(CurrentTime - target_p->localClient->last_privmsg)); + idle_time_get(source_p, target_p)); else - sendto_one(source_p, ":%s %d %s p :[%c] %s (%s@%s) Idle: %d", + sendto_one(source_p, ":%s %d %s p :[%c] %s (%s@%s) Idle: %u", from, RPL_STATSDEBUG, to, HasUMode(target_p, UMODE_ADMIN) ? 'A' : 'O', target_p->name, target_p->username, target_p->host, - (int)(CurrentTime - target_p->localClient->last_privmsg)); + idle_time_get(source_p, target_p)); } sendto_one(source_p, ":%s %d %s p :%u OPER(s)", |