summaryrefslogtreecommitdiff
path: root/src/gui/gui-chat.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/gui-chat.c')
-rw-r--r--src/gui/gui-chat.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/gui-chat.c b/src/gui/gui-chat.c
index 4ae1c57a9..c709b2e1a 100644
--- a/src/gui/gui-chat.c
+++ b/src/gui/gui-chat.c
@@ -463,7 +463,7 @@ gui_chat_printf_date (struct t_gui_buffer *buffer, time_t date,
if (gui_init_ok)
{
if (buffer == NULL)
- buffer = gui_buffers;
+ buffer = gui_buffer_search_main ();
if (buffer->type == GUI_BUFFER_TYPE_FREE)
buffer = gui_buffers;