summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormathieui <mathieui@mathieui.net>2016-06-24 20:20:36 +0200
committermathieui <mathieui@mathieui.net>2016-06-24 20:20:36 +0200
commit158bb8c3f36d5bee355dab5000f72adbd58e2154 (patch)
tree278dc2590c1e6a671d34e57b6d839591a8bc0800
parent3c90ac838f4e8b908d18b4068bd1bbf9989453ba (diff)
downloadpoezio-158bb8c3f36d5bee355dab5000f72adbd58e2154.tar.gz
poezio-158bb8c3f36d5bee355dab5000f72adbd58e2154.tar.bz2
poezio-158bb8c3f36d5bee355dab5000f72adbd58e2154.tar.xz
poezio-158bb8c3f36d5bee355dab5000f72adbd58e2154.zip
Fix #3198 (no highlight in corrections)
broken since bc6ee8d due to using timestamps
-rw-r--r--poezio/tabs/muctab.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/poezio/tabs/muctab.py b/poezio/tabs/muctab.py
index 085bcbde..20196c6f 100644
--- a/poezio/tabs/muctab.py
+++ b/poezio/tabs/muctab.py
@@ -1575,12 +1575,12 @@ class MucTab(ChatTab):
self.core.information('Unable to write in the log file',
'Error')
- def do_highlight(self, txt, time, nickname):
+ def do_highlight(self, txt, time, nickname, corrected=False):
"""
Set the tab color and returns the nick color
"""
highlighted = False
- if not time and nickname and nickname != self.own_nick and self.joined:
+ if (not time or corrected) and nickname and nickname != self.own_nick and self.joined:
if re.search(r'\b' + self.own_nick.lower() + r'\b', txt.lower()):
if self.state != 'current':
@@ -1662,7 +1662,7 @@ class MucTab(ChatTab):
def modify_message(self, txt, old_id, new_id,
time=None, nickname=None, user=None, jid=None):
self.log_message(txt, nickname, time=time, typ=1)
- highlight = self.do_highlight(txt, time, nickname)
+ highlight = self.do_highlight(txt, time, nickname, corrected=True)
message = self._text_buffer.modify_message(txt, old_id, new_id,
highlight=highlight,
time=time, user=user,