From 2498ff63dba0ad3880fc3dadcac6b36f047ac0e2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Helleu?= Date: Wed, 22 Oct 2014 21:35:33 +0200 Subject: [PATCH] core: display time in bare display only if option weechat.look.buffer_time_format is not an empty string --- ChangeLog.asciidoc | 2 ++ src/gui/curses/gui-curses-chat.c | 2 ++ 2 files changed, 4 insertions(+) diff --git a/ChangeLog.asciidoc b/ChangeLog.asciidoc index 3db27131b..1f3b70a90 100644 --- a/ChangeLog.asciidoc +++ b/ChangeLog.asciidoc @@ -35,6 +35,8 @@ http://weechat.org/files/releasenotes/ReleaseNotes-devel.html[release notes] === Bugs fixed +* core: display time in bare display only if option + weechat.look.buffer_time_format is not an empty string * core: fix translation of message displayed after /upgrade * irc: add tag "nick_xxx" in invite messages * irc: fix completion of commands /msg, /notice and /query diff --git a/src/gui/curses/gui-curses-chat.c b/src/gui/curses/gui-curses-chat.c index df8841a9e..bdc14f25a 100644 --- a/src/gui/curses/gui-curses-chat.c +++ b/src/gui/curses/gui-curses-chat.c @@ -1896,6 +1896,8 @@ gui_chat_get_bare_line (struct t_gui_line *line) str_time[0] = '\0'; if (line->data->buffer->time_for_each_line && (line->data->date > 0) + && CONFIG_STRING(config_look_buffer_time_format) + && CONFIG_STRING(config_look_buffer_time_format)[0] && CONFIG_STRING(config_look_bare_display_time_format) && CONFIG_STRING(config_look_bare_display_time_format)[0]) {