changeset 1f386a858d48 in /home/hg/repos/gajim

details:http://hg.gajim.org/gajim?cmd=changeset;node=1f386a858d48
description: prevent traceback when we get a groupchat message for a room we're 
no more conencted. Fixes #5993

diffstat:

 src/remote_control.py |  3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diffs (13 lines):

diff -r 71889998d62f -r 1f386a858d48 src/remote_control.py
--- a/src/remote_control.py     Mon Oct 25 09:57:40 2010 +0200
+++ b/src/remote_control.py     Mon Oct 25 11:23:10 2010 +0200
@@ -171,6 +171,9 @@
         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]))
_______________________________________________
Commits mailing list
Commits@gajim.org
http://lists.gajim.org/cgi-bin/listinfo/commits

Reply via email to