1
0
mirror of https://github.com/weechat/weechat.git synced 2026-07-01 15:26:37 +02:00

The "day changed" message does not update hotlist any more

This commit is contained in:
Sebastien Helleu
2005-10-21 14:20:22 +00:00
parent 73359fcc05
commit ee2951bf11
4 changed files with 10 additions and 10 deletions
+4 -4
View File
@@ -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;
}
+1 -1
View File
@@ -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
+4 -4
View File
@@ -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;
}
+1 -1
View File
@@ -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