From 79ba162940cbf0d54727598c5abe7173529c91fb Mon Sep 17 00:00:00 2001 From: Jilles Tjoelker Date: Sat, 15 Nov 2008 21:15:38 +0100 Subject: [PATCH] Truncate idle time in /who to 32 bits. Pointed out by dwr (but solved differently). --- modules/m_who.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/m_who.c b/modules/m_who.c index f05beca..65304c2 100644 --- a/modules/m_who.c +++ b/modules/m_who.c @@ -480,7 +480,7 @@ do_who(struct Client *source_p, struct Client *target_p, struct membership *mspt if (fmt->fields & FIELD_HOP) p += rb_snprintf(p, end - p, " %d", ConfigServerHide.flatten_links ? 0 : target_p->hopcount); if (fmt->fields & FIELD_IDLE) - p += rb_snprintf(p, end - p, " %d", MyClient(target_p) ? rb_current_time() - target_p->localClient->last : 0); + p += rb_snprintf(p, end - p, " %d", (int)(MyClient(target_p) ? rb_current_time() - target_p->localClient->last : 0)); if (fmt->fields & FIELD_ACCOUNT) { /* display as in whois */