summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormathieui <mathieui@mathieui.net>2015-05-08 13:40:25 +0200
committermathieui <mathieui@mathieui.net>2015-05-08 13:41:20 +0200
commitf1e6d6b0a92d061683cb1d1cabceb7f90c859a73 (patch)
tree3d2b101c0b259519647dd1888bb3c40fb690e943
parent116a33ba5162b2129dd787478f5ff2dd8f698b45 (diff)
downloadslixmpp-f1e6d6b0a92d061683cb1d1cabceb7f90c859a73.tar.gz
slixmpp-f1e6d6b0a92d061683cb1d1cabceb7f90c859a73.tar.bz2
slixmpp-f1e6d6b0a92d061683cb1d1cabceb7f90c859a73.tar.xz
slixmpp-f1e6d6b0a92d061683cb1d1cabceb7f90c859a73.zip
Advertize the disco#info feature in our disco#info
Actually a MUST in XEP-0030
-rw-r--r--slixmpp/plugins/xep_0030/disco.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/slixmpp/plugins/xep_0030/disco.py b/slixmpp/plugins/xep_0030/disco.py
index c8c18ea7..cf654189 100644
--- a/slixmpp/plugins/xep_0030/disco.py
+++ b/slixmpp/plugins/xep_0030/disco.py
@@ -122,6 +122,12 @@ class XEP_0030(BasePlugin):
for op in self._disco_ops:
self.api.register(getattr(self.static, op), op, default=True)
+ def session_bind(self, jid):
+ self.add_feature('http://jabber.org/protocol/disco#info')
+
+ def plugin_end(self):
+ self.del_feature('http://jabber.org/protocol/disco#info')
+
def _add_disco_op(self, op, default_handler):
self.api.register(default_handler, op)
self.api.register_default(default_handler, op)