summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorlouiz@4325f9fc-e183-4c21-96ce-0ab188b42d13 <louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13>2010-07-20 09:57:31 +0000
committerlouiz@4325f9fc-e183-4c21-96ce-0ab188b42d13 <louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13>2010-07-20 09:57:31 +0000
commitf4dbe478eb98b989de8c532113c93abce3b1a14a (patch)
treef612b41d846c476119c8f8f3c1a891df8693ba23 /src
parent5eeebb36bfe73dcf17dc8b72bd190c266e25c45e (diff)
downloadpoezio-f4dbe478eb98b989de8c532113c93abce3b1a14a.tar.gz
poezio-f4dbe478eb98b989de8c532113c93abce3b1a14a.tar.bz2
poezio-f4dbe478eb98b989de8c532113c93abce3b1a14a.tar.xz
poezio-f4dbe478eb98b989de8c532113c93abce3b1a14a.zip
fix <x/> tag handling
Diffstat (limited to 'src')
-rw-r--r--src/connection.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/connection.py b/src/connection.py
index 5e36ba97..7871c45d 100644
--- a/src/connection.py
+++ b/src/connection.py
@@ -127,8 +127,12 @@ class Connection(threading.Thread):
"""
check if it's a normal or a muc presence
"""
- x = presence.getTag('x')
- if x and x.getAttr('xmlns') == 'http://jabber.org/protocol/muc#user':
+ is_muc = False
+ 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)
else:
self.handler_normal_presence(connection, presence)