From e42bb5823ff497d8d714ee69825296d5e11f52ad Mon Sep 17 00:00:00 2001 From: Yann Leboulanger Date: Tue, 7 Jul 2009 13:41:05 +0200 Subject: [PATCH] don't traceback when we receive pep info from muc --- src/common/connection_handlers.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/common/connection_handlers.py b/src/common/connection_handlers.py index 7548bd0fe..48819d8d9 100644 --- a/src/common/connection_handlers.py +++ b/src/common/connection_handlers.py @@ -1799,8 +1799,11 @@ class ConnectionHandlers(ConnectionVcard, ConnectionBytestream, ConnectionDisco, '''Called when we receive a message''' log.debug('MessageCB') + mtype = msg.getType() # check if the message is pubsub#event if msg.getTag('event') is not None: + if mtype == 'groupchat': + return if msg.getTag('error') is None: self._pubsubEventCB(con, msg) return @@ -1854,7 +1857,6 @@ class ConnectionHandlers(ConnectionVcard, ConnectionBytestream, ConnectionDisco, is_continued)) return - mtype = msg.getType() thread_id = msg.getThread() if not mtype: