don't traceback when we receive pep info from muc
This commit is contained in:
parent
765336b4fb
commit
e42bb5823f
|
@ -1799,8 +1799,11 @@ class ConnectionHandlers(ConnectionVcard, ConnectionBytestream, ConnectionDisco,
|
||||||
'''Called when we receive a message'''
|
'''Called when we receive a message'''
|
||||||
log.debug('MessageCB')
|
log.debug('MessageCB')
|
||||||
|
|
||||||
|
mtype = msg.getType()
|
||||||
# check if the message is pubsub#event
|
# check if the message is pubsub#event
|
||||||
if msg.getTag('event') is not None:
|
if msg.getTag('event') is not None:
|
||||||
|
if mtype == 'groupchat':
|
||||||
|
return
|
||||||
if msg.getTag('error') is None:
|
if msg.getTag('error') is None:
|
||||||
self._pubsubEventCB(con, msg)
|
self._pubsubEventCB(con, msg)
|
||||||
return
|
return
|
||||||
|
@ -1854,7 +1857,6 @@ class ConnectionHandlers(ConnectionVcard, ConnectionBytestream, ConnectionDisco,
|
||||||
is_continued))
|
is_continued))
|
||||||
return
|
return
|
||||||
|
|
||||||
mtype = msg.getType()
|
|
||||||
thread_id = msg.getThread()
|
thread_id = msg.getThread()
|
||||||
|
|
||||||
if not mtype:
|
if not mtype:
|
||||||
|
|
Loading…
Reference in New Issue