summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSébastien Helleu <flashcode@flashtux.org>2014-10-22 21:35:33 +0200
committerSébastien Helleu <flashcode@flashtux.org>2014-10-22 21:35:33 +0200
commit2498ff63dba0ad3880fc3dadcac6b36f047ac0e2 (patch)
treed8cf68a36844c1a167a74293d8d89e12d98fab1d
parent633a32ccd367bdb7e2f97066a4d35f01ecb8e8fb (diff)
downloadweechat-2498ff63dba0ad3880fc3dadcac6b36f047ac0e2.zip
core: display time in bare display only if option weechat.look.buffer_time_format is not an empty string
-rw-r--r--ChangeLog.asciidoc2
-rw-r--r--src/gui/curses/gui-curses-chat.c2
2 files changed, 4 insertions, 0 deletions
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])
{