From 1ce485c6faa15f624dcc79b3260bf3a9899b5cee Mon Sep 17 00:00:00 2001 From: mathieui Date: Mon, 7 Apr 2014 01:25:30 +0200 Subject: Fix #2354 (logs are badly colored with xhtml history) - now it should work properly - add a COLOR_LOG_MSG theming option, used both for local and remote history --- src/tabs/muctab.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/tabs') diff --git a/src/tabs/muctab.py b/src/tabs/muctab.py index bb094bbf..8953d075 100644 --- a/src/tabs/muctab.py +++ b/src/tabs/muctab.py @@ -1202,7 +1202,9 @@ class MucTab(ChatTab): if self.state != 'highlight' and\ config.get_by_tabname('notify_messages', True, self.get_name()): self.state = 'message' - if (not nickname or time) and not txt.startswith('/me '): + if time: + txt = '\x19%(info_col)s}%(txt)s' % {'txt':txt, 'info_col': dump_tuple(get_theme().COLOR_LOG_MSG)} + elif (not nickname or time) and not txt.startswith('/me '): txt = '\x19%(info_col)s}%(txt)s' % {'txt':txt, 'info_col': dump_tuple(get_theme().COLOR_INFORMATION_TEXT)} elif not kwargs.get('highlight'): # TODO args['highlight'] = self.do_highlight(txt, time, nickname) -- cgit v1.2.3