From fbd3c4594783ecc45cd8421988d41b0ddb176c64 Mon Sep 17 00:00:00 2001 From: Yann Leboulanger Date: Fri, 26 Aug 2011 12:02:48 +0200 Subject: [PATCH] fix traceback --- src/common/connection_handlers_events.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/common/connection_handlers_events.py b/src/common/connection_handlers_events.py index f7450741f..3e691b1b9 100644 --- a/src/common/connection_handlers_events.py +++ b/src/common/connection_handlers_events.py @@ -2005,6 +2005,9 @@ class NotificationEvent(nec.NetworkIncomingEvent): self.do_sound = True def handle_incoming_gc_msg_event(self, msg_obj): + if not msg_obj.msg_obj.gc_control: + # we got a message from a room we're not in? ignore it + return sound = msg_obj.msg_obj.gc_control.highlighting_for_message( msg_obj.msgtxt, msg_obj.timestamp)[1]