diff options
author | Sebastien Helleu <flashcode@flashtux.org> | 2005-10-21 14:20:22 +0000 |
---|---|---|
committer | Sebastien Helleu <flashcode@flashtux.org> | 2005-10-21 14:20:22 +0000 |
commit | ee2951bf11eed064204637982fade2a972547707 (patch) | |
tree | ee782898510360145860b546918ac3911e5eef09 | |
parent | 73359fcc05f325f0b1045c318d3e9d9a844f592b (diff) | |
download | weechat-ee2951bf11eed064204637982fade2a972547707.zip |
The "day changed" message does not update hotlist any more
-rw-r--r-- | src/gui/curses/gui-input.c | 8 | ||||
-rw-r--r-- | src/gui/gui.h | 2 | ||||
-rw-r--r-- | weechat/src/gui/curses/gui-input.c | 8 | ||||
-rw-r--r-- | weechat/src/gui/gui.h | 2 |
4 files changed, 10 insertions, 10 deletions
diff --git a/src/gui/curses/gui-input.c b/src/gui/curses/gui-input.c index 2e7eef637..dd0cb1fed 100644 --- a/src/gui/curses/gui-input.c +++ b/src/gui/curses/gui-input.c @@ -306,18 +306,18 @@ gui_main_loop () if (cfg_look_day_change && (local_time->tm_mday != old_day)) { + strftime (text_time, sizeof (text_time), + cfg_look_day_change_timestamp, local_time); + gui_add_hotlist = 0; for (ptr_buffer = gui_buffers; ptr_buffer; ptr_buffer = ptr_buffer->next_buffer) { if (!ptr_buffer->dcc) - { - strftime (text_time, sizeof (text_time), - cfg_look_day_change_timestamp, local_time); gui_printf_nolog_notime (ptr_buffer, _("Day changed to %s\n"), text_time); - } } + gui_add_hotlist = 1; } old_day = local_time->tm_mday; } diff --git a/src/gui/gui.h b/src/gui/gui.h index 73a0bbac2..c95a07f69 100644 --- a/src/gui/gui.h +++ b/src/gui/gui.h @@ -108,7 +108,7 @@ gui_printf_internal(buffer, 1, MSG_TYPE_INFO | MSG_TYPE_NOLOG, -1, fmt, ##argz) #define gui_printf_nolog_notime(buffer, fmt, argz...) \ - gui_printf_internal(buffer, 0, MSG_TYPE_INFO | MSG_TYPE_NOLOG, -1, fmt, ##argz) + gui_printf_internal(buffer, 0, MSG_TYPE_NOLOG, -1, fmt, ##argz) #define NOTIFY_LEVEL_MIN 0 #define NOTIFY_LEVEL_MAX 3 diff --git a/weechat/src/gui/curses/gui-input.c b/weechat/src/gui/curses/gui-input.c index 2e7eef637..dd0cb1fed 100644 --- a/weechat/src/gui/curses/gui-input.c +++ b/weechat/src/gui/curses/gui-input.c @@ -306,18 +306,18 @@ gui_main_loop () if (cfg_look_day_change && (local_time->tm_mday != old_day)) { + strftime (text_time, sizeof (text_time), + cfg_look_day_change_timestamp, local_time); + gui_add_hotlist = 0; for (ptr_buffer = gui_buffers; ptr_buffer; ptr_buffer = ptr_buffer->next_buffer) { if (!ptr_buffer->dcc) - { - strftime (text_time, sizeof (text_time), - cfg_look_day_change_timestamp, local_time); gui_printf_nolog_notime (ptr_buffer, _("Day changed to %s\n"), text_time); - } } + gui_add_hotlist = 1; } old_day = local_time->tm_mday; } diff --git a/weechat/src/gui/gui.h b/weechat/src/gui/gui.h index 73a0bbac2..c95a07f69 100644 --- a/weechat/src/gui/gui.h +++ b/weechat/src/gui/gui.h @@ -108,7 +108,7 @@ gui_printf_internal(buffer, 1, MSG_TYPE_INFO | MSG_TYPE_NOLOG, -1, fmt, ##argz) #define gui_printf_nolog_notime(buffer, fmt, argz...) \ - gui_printf_internal(buffer, 0, MSG_TYPE_INFO | MSG_TYPE_NOLOG, -1, fmt, ##argz) + gui_printf_internal(buffer, 0, MSG_TYPE_NOLOG, -1, fmt, ##argz) #define NOTIFY_LEVEL_MIN 0 #define NOTIFY_LEVEL_MAX 3 |