Welcome to mirror list, hosted at ThFree Co, Russian Federation.

dev.gajim.org/gajim/gajim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYann Leboulanger <asterix@lagaule.org>2010-10-25 13:23:10 +0400
committerYann Leboulanger <asterix@lagaule.org>2010-10-25 13:23:10 +0400
commita58e2c584ad86e13c9178925b4b41c45a65ff17e (patch)
tree39607633e7fe39d324280e452f17d394af92e7cf /src/remote_control.py
parentb1675bf233c5585c25ad862e828cd3b2c749122e (diff)
prevent traceback when we get a groupchat message for a room we're no more conencted. Fixes #5993
Diffstat (limited to 'src/remote_control.py')
-rw-r--r--src/remote_control.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/remote_control.py b/src/remote_control.py
index fb7efd40a..a8fcc9d14 100644
--- a/src/remote_control.py
+++ b/src/remote_control.py
@@ -171,6 +171,9 @@ class Remote:
self.raise_signal('Unsubscribed', (obj.conn.name, obj.jid))
def on_gc_message_received(self, obj):
+ if not hasattr(obj, 'needs_highlight'):
+ # event has not been handled at GUI level
+ return
self.raise_signal('GCMessage', (obj.conn.name, [obj.fjid, obj.msgtxt,
obj.timestamp, obj.has_timestamp, obj.xhtml_msgtxt, obj.status_code,
obj.displaymarking, obj.captcha_form, obj.needs_highlight]))