mirror of
https://github.com/matrix-construct/construct
synced 2024-12-02 03:32:52 +01:00
Truncate idle time in /who to 32 bits.
Pointed out by dwr (but solved differently).
This commit is contained in:
parent
b0c41d32b1
commit
9cd063980a
1 changed files with 1 additions and 1 deletions
|
@ -480,7 +480,7 @@ do_who(struct Client *source_p, struct Client *target_p, struct membership *mspt
|
||||||
if (fmt->fields & FIELD_HOP)
|
if (fmt->fields & FIELD_HOP)
|
||||||
p += rb_snprintf(p, end - p, " %d", ConfigServerHide.flatten_links ? 0 : target_p->hopcount);
|
p += rb_snprintf(p, end - p, " %d", ConfigServerHide.flatten_links ? 0 : target_p->hopcount);
|
||||||
if (fmt->fields & FIELD_IDLE)
|
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)
|
if (fmt->fields & FIELD_ACCOUNT)
|
||||||
{
|
{
|
||||||
/* display as in whois */
|
/* display as in whois */
|
||||||
|
|
Loading…
Reference in a new issue