Fix /me display in delayed messages

This commit is contained in:
mathieui 2014-10-10 14:20:59 +02:00
parent 8d2408c169
commit 8f6ab25fc9
No known key found for this signature in database
GPG key ID: C59F84CEEFD616E3

View file

@ -1523,11 +1523,11 @@ class MucTab(ChatTab):
config.get_by_tabname('notify_messages', config.get_by_tabname('notify_messages',
True, self.name)): True, self.name)):
self.state = 'message' self.state = 'message'
if time: if time and not txt.startswith('/me'):
txt = '\x19%(info_col)s}%(txt)s' % { txt = '\x19%(info_col)s}%(txt)s' % {
'txt': txt, 'txt': txt,
'info_col': dump_tuple(get_theme().COLOR_LOG_MSG)} 'info_col': dump_tuple(get_theme().COLOR_LOG_MSG)}
elif (not nickname or time) and not txt.startswith('/me '): elif not nickname:
txt = '\x19%(info_col)s}%(txt)s' % { txt = '\x19%(info_col)s}%(txt)s' % {
'txt': txt, 'txt': txt,
'info_col': dump_tuple(get_theme().COLOR_INFORMATION_TEXT)} 'info_col': dump_tuple(get_theme().COLOR_INFORMATION_TEXT)}