don't traceback when we receive pep info from muc

This commit is contained in:
Yann Leboulanger 2009-07-07 13:41:05 +02:00
parent 765336b4fb
commit e42bb5823f
1 changed files with 3 additions and 1 deletions

View File

@ -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: