From f7a6193e57dd116ad20d531ccdab22d48959656e Mon Sep 17 00:00:00 2001 From: Trygve Aaberge Date: Sun, 9 Oct 2022 21:41:41 +0200 Subject: Evaluate value of weechat.look.buffer_time_format Fixes #871 --- wee_slack.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/wee_slack.py b/wee_slack.py index ec01e28..84950a7 100644 --- a/wee_slack.py +++ b/wee_slack.py @@ -3214,8 +3214,11 @@ class SlackThreadChannel(SlackChannelCommon): ) self.buffer_rename_in_progress = False self.set_highlights() - time_format = w.config_string( - w.config_get("weechat.look.buffer_time_format") + time_format = w.string_eval_expression( + w.config_string(w.config_get("weechat.look.buffer_time_format")), + {}, + {}, + {}, ) parent_time = time.localtime(SlackTS(self.thread_ts).major) topic = "{} {} | {}".format( -- cgit