From 381f410058283c74fd433b6e3bfee30e17bad820 Mon Sep 17 00:00:00 2001 From: Timo Sirainen Date: Mon, 12 Nov 2001 14:17:23 +0000 Subject: [PATCH] extra check to make sure the "timer changed" signal is sent at startup. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1993 dbcabf3a-b0e7-0310-adc4-f8d773084564 --- src/core/expandos.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/expandos.c b/src/core/expandos.c index fd4ee5e6..90288bf6 100644 --- a/src/core/expandos.c +++ b/src/core/expandos.c @@ -481,7 +481,7 @@ static int sig_timer(void) /* check if $Z has changed */ now = time(NULL); if (last_timestamp != now) { - if (!timestamp_seconds) { + if (!timestamp_seconds && last_timestamp != 0) { /* assume it changes every minute */ tm = localtime(&last_timestamp); last_min = tm->tm_min;