summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
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)