summaryrefslogtreecommitdiff
path: root/src/tabs
diff options
context:
space:
mode:
authormathieui <mathieui@mathieui.net>2014-05-08 00:27:26 +0200
committermathieui <mathieui@mathieui.net>2014-05-08 00:27:26 +0200
commit9786592b80f7ddcfefa967ea910f38ba3c02b0b4 (patch)
tree413e6cf2299f427cbc8e2c6b1ba0a8c4fdbd1f3b /src/tabs
parent51d552062615b8f6f4d5090d363ce3b27cbead40 (diff)
downloadpoezio-9786592b80f7ddcfefa967ea910f38ba3c02b0b4.tar.gz
poezio-9786592b80f7ddcfefa967ea910f38ba3c02b0b4.tar.bz2
poezio-9786592b80f7ddcfefa967ea910f38ba3c02b0b4.tar.xz
poezio-9786592b80f7ddcfefa967ea910f38ba3c02b0b4.zip
Fix a hidden traceback on error message outside MUCs
Diffstat (limited to 'src/tabs')
-rw-r--r--src/tabs/basetabs.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/tabs/basetabs.py b/src/tabs/basetabs.py
index c1281e62..c472bd60 100644
--- a/src/tabs/basetabs.py
+++ b/src/tabs/basetabs.py
@@ -490,10 +490,13 @@ class ChatTab(Tab):
if not logger.log_message(name, nickname, txt, date=time, typ=typ):
self.core.information(_('Unable to write in the log file'), 'Error')
- def add_message(self, txt, time=None, nickname=None, forced_user=None, nick_color=None, identifier=None, jid=None, history=None, typ=1):
+ def add_message(self, txt, time=None, nickname=None, forced_user=None,
+ nick_color=None, identifier=None, jid=None, history=None,
+ typ=1, highlight=False):
self.log_message(txt, nickname, time=time, typ=typ)
self._text_buffer.add_message(txt, time=time,
nickname=nickname,
+ highlight=highlight,
nick_color=nick_color,
history=history,
user=forced_user,