diff options
Diffstat (limited to 'modules')
-rw-r--r-- | modules/m_stats.c | 8 | ||||
-rw-r--r-- | modules/m_trace.c | 14 | ||||
-rw-r--r-- | modules/m_whois.c | 2 |
3 files changed, 12 insertions, 12 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)", diff --git a/modules/m_trace.c b/modules/m_trace.c index 77982fa..3c1be75 100644 --- a/modules/m_trace.c +++ b/modules/m_trace.c @@ -218,7 +218,7 @@ do_actual_trace(struct Client *source_p, int parc, char *parv[]) from, to, get_client_class(&target_p->localClient->confs), name, IsIPSpoof(target_p) ? "255.255.255.255" : target_p->sockhost, CurrentTime - target_p->localClient->lasttime, - CurrentTime - target_p->localClient->last_privmsg); + idle_time_get(source_p, target_p)); } else { @@ -226,7 +226,7 @@ do_actual_trace(struct Client *source_p, int parc, char *parv[]) from, to, get_client_class(&target_p->localClient->confs), name, IsIPSpoof(target_p) ? "255.255.255.255" : target_p->sockhost, CurrentTime - target_p->localClient->lasttime, - CurrentTime - target_p->localClient->last_privmsg); + idle_time_get(source_p, target_p)); } } @@ -354,7 +354,7 @@ report_this_status(struct Client *source_p, struct Client *target_p, int dow) from, to, class_name, name, HasUMode(source_p, UMODE_ADMIN) ? target_p->sockhost : "255.255.255.255", CurrentTime - target_p->localClient->lasttime, - CurrentTime - target_p->localClient->last_privmsg); + idle_time_get(source_p, target_p)); else if (HasUMode(target_p, UMODE_OPER)) { @@ -363,14 +363,14 @@ report_this_status(struct Client *source_p, struct Client *target_p, int dow) from, to, class_name, name, IsIPSpoof(target_p) ? "255.255.255.255" : target_p->sockhost, CurrentTime - target_p->localClient->lasttime, - CurrentTime - target_p->localClient->last_privmsg); + idle_time_get(source_p, target_p)); else sendto_one(source_p, form_str(RPL_TRACEOPERATOR), from, to, class_name, name, MyOper(source_p) ? target_p->sockhost : (IsIPSpoof(target_p) ? "255.255.255.255" : target_p->sockhost), CurrentTime - target_p->localClient->lasttime, - CurrentTime - target_p->localClient->last_privmsg); + idle_time_get(source_p, target_p)); } else { @@ -379,14 +379,14 @@ report_this_status(struct Client *source_p, struct Client *target_p, int dow) from, to, class_name, name, IsIPSpoof(target_p) ? "255.255.255.255" : target_p->sockhost, CurrentTime - target_p->localClient->lasttime, - CurrentTime - target_p->localClient->last_privmsg); + idle_time_get(source_p, target_p)); else sendto_one(source_p, form_str(RPL_TRACEUSER), from, to, class_name, name, MyOper(source_p) ? target_p->sockhost : (IsIPSpoof(target_p) ? "255.255.255.255" : target_p->sockhost), CurrentTime - target_p->localClient->lasttime, - CurrentTime - target_p->localClient->last_privmsg); + idle_time_get(source_p, target_p)); } } break; diff --git a/modules/m_whois.c b/modules/m_whois.c index 601c148..8b637e8 100644 --- a/modules/m_whois.c +++ b/modules/m_whois.c @@ -382,7 +382,7 @@ whois_person(struct Client *source_p, struct Client *target_p) #endif sendto_one(source_p, form_str(RPL_WHOISIDLE), me.name, source_p->name, target_p->name, - CurrentTime - target_p->localClient->last_privmsg, + idle_time_get(source_p, target_p), target_p->localClient->firsttime); if (HasUMode(target_p, UMODE_OPER) && target_p != source_p) |