diff options
author | Geert Hauwaerts <geert@irssi.org> | 2007-04-16 18:55:15 +0000 |
---|---|---|
committer | Geert <Geert@dbcabf3a-b0e7-0310-adc4-f8d773084564> | 2007-04-16 18:55:15 +0000 |
commit | c1abb843b221cf1a897eb79ac1da9d42640dbfb0 (patch) | |
tree | 82104154e26a2c589704e5f896d646246da77ce1 /src | |
parent | 27ec7f0f1e7aaddec8eb4ce9f23922c0fcab999a (diff) | |
download | irssi-c1abb843b221cf1a897eb79ac1da9d42640dbfb0.zip |
Hide daychange.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4453 dbcabf3a-b0e7-0310-adc4-f8d773084564
Diffstat (limited to 'src')
-rw-r--r-- | src/fe-common/core/fe-common-core.c | 1 | ||||
-rw-r--r-- | src/fe-common/core/fe-windows.c | 7 |
2 files changed, 6 insertions, 2 deletions
diff --git a/src/fe-common/core/fe-common-core.c b/src/fe-common/core/fe-common-core.c index be42812f..6199b70d 100644 --- a/src/fe-common/core/fe-common-core.c +++ b/src/fe-common/core/fe-common-core.c @@ -162,6 +162,7 @@ void fe_common_core_init(void) settings_add_bool("lookandfeel", "timestamps", TRUE); settings_add_level("lookandfeel", "timestamp_level", "ALL"); settings_add_time("lookandfeel", "timestamp_timeout", "0"); + settings_add_bool("lookandfeel", "hide_daychange", FALSE); settings_add_bool("lookandfeel", "bell_beeps", FALSE); settings_add_level("lookandfeel", "beep_msg_level", ""); diff --git a/src/fe-common/core/fe-windows.c b/src/fe-common/core/fe-windows.c index 4e0cba5d..cf8714fc 100644 --- a/src/fe-common/core/fe-windows.c +++ b/src/fe-common/core/fe-windows.c @@ -602,8 +602,11 @@ static void sig_print_text(void) signal_remove("print text", (SIGNAL_FUNC) sig_print_text); /* day changed, print notice about it to every window */ - for (tmp = windows; tmp != NULL; tmp = tmp->next) - window_print_daychange(tmp->data, tm); + /* but only show it if we want it shown */ + if (!settings_get_bool("hide_daychange")) { + for (tmp = windows; tmp != NULL; tmp = tmp->next) + window_print_daychange(tmp->data, tm); + } } static int sig_check_daychange(void) |