summaryrefslogtreecommitdiff
path: root/src/tabs
diff options
context:
space:
mode:
authormathieui <mathieui@mathieui.net>2014-04-07 01:25:30 +0200
committermathieui <mathieui@mathieui.net>2014-04-07 01:25:30 +0200
commit1ce485c6faa15f624dcc79b3260bf3a9899b5cee (patch)
tree2e2da40dab7babf528853b3d0fd92ef4485abb8c /src/tabs
parent53040305ce97bd532bd27cf0c2f626136f34a572 (diff)
downloadpoezio-1ce485c6faa15f624dcc79b3260bf3a9899b5cee.tar.gz
poezio-1ce485c6faa15f624dcc79b3260bf3a9899b5cee.tar.bz2
poezio-1ce485c6faa15f624dcc79b3260bf3a9899b5cee.tar.xz
poezio-1ce485c6faa15f624dcc79b3260bf3a9899b5cee.zip
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
Diffstat (limited to 'src/tabs')
-rw-r--r--src/tabs/muctab.py4
1 files changed, 3 insertions, 1 deletions
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)