summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormathieui <mathieui@mathieui.net>2015-01-15 22:50:49 +0100
committermathieui <mathieui@mathieui.net>2015-01-15 22:50:49 +0100
commit62eefdbd6a6be7fd1e519a3f1431661ea614af3e (patch)
treed15700ca1abb1e571c82b1c16e68452d6f219dc3
parent225e07eb643e0283aafb7d531c576fa1ef527a9c (diff)
downloadslixmpp-62eefdbd6a6be7fd1e519a3f1431661ea614af3e.tar.gz
slixmpp-62eefdbd6a6be7fd1e519a3f1431661ea614af3e.tar.bz2
slixmpp-62eefdbd6a6be7fd1e519a3f1431661ea614af3e.tar.xz
slixmpp-62eefdbd6a6be7fd1e519a3f1431661ea614af3e.zip
Expose MUC support in disco#info
http://xmpp.org/extensions/xep-0045.html#disco-client
-rw-r--r--slixmpp/plugins/xep_0045.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/slixmpp/plugins/xep_0045.py b/slixmpp/plugins/xep_0045.py
index a9344a41..66bd863c 100644
--- a/slixmpp/plugins/xep_0045.py
+++ b/slixmpp/plugins/xep_0045.py
@@ -135,6 +135,12 @@ class XEP_0045(BasePlugin):
'http://jabber.org/protocol/muc#user',
'http://jabber.org/protocol/muc#user')), self.handle_groupchat_invite))
+ def plugin_end(self):
+ self.xmpp.plugin['xep_0030'].del_feature(feature='http://jabber.org/protocol/muc')
+
+ def session_bind(self, jid):
+ self.xmpp.plugin['xep_0030'].add_feature('http://jabber.org/protocol/muc')
+
def handle_groupchat_invite(self, inv):
""" Handle an invite into a muc.
"""