summaryrefslogtreecommitdiff
path: root/src/core
diff options
context:
space:
mode:
authorTimo Sirainen <cras@irssi.org>2001-11-12 14:17:23 +0000
committercras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564>2001-11-12 14:17:23 +0000
commit381f410058283c74fd433b6e3bfee30e17bad820 (patch)
treea986e75978a1530bd57102ff7283eb3f9d4c1038 /src/core
parente261b422eca4d49fb7c9fea97bc61c700b6c5c5f (diff)
downloadirssi-381f410058283c74fd433b6e3bfee30e17bad820.zip
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
Diffstat (limited to 'src/core')
-rw-r--r--src/core/expandos.c2
1 files changed, 1 insertions, 1 deletions
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;