fix <x/> tag handling
This commit is contained in:
parent
5eeebb36bf
commit
f4dbe478eb
1 changed files with 6 additions and 2 deletions
|
@ -127,8 +127,12 @@ class Connection(threading.Thread):
|
||||||
"""
|
"""
|
||||||
check if it's a normal or a muc presence
|
check if it's a normal or a muc presence
|
||||||
"""
|
"""
|
||||||
x = presence.getTag('x')
|
is_muc = False
|
||||||
if x and x.getAttr('xmlns') == 'http://jabber.org/protocol/muc#user':
|
tags = presence.getTags('x')
|
||||||
|
for tag in tags:
|
||||||
|
if tag.getAttr('xmlns') == 'http://jabber.org/protocol/muc#user':
|
||||||
|
is_muc = True
|
||||||
|
if is_muc:
|
||||||
self.handler_muc_presence(connection, presence)
|
self.handler_muc_presence(connection, presence)
|
||||||
else:
|
else:
|
||||||
self.handler_normal_presence(connection, presence)
|
self.handler_normal_presence(connection, presence)
|
||||||
|
|
Loading…
Reference in a new issue