prevent traceback when we get a groupchat message for a room we're no more conencted. Fixes #5993

This commit is contained in:
Yann Leboulanger 2010-10-25 11:23:10 +02:00
parent b1675bf233
commit a58e2c584a

View file

@ -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]))