From f1e6d6b0a92d061683cb1d1cabceb7f90c859a73 Mon Sep 17 00:00:00 2001 From: mathieui Date: Fri, 8 May 2015 13:40:25 +0200 Subject: Advertize the disco#info feature in our disco#info Actually a MUST in XEP-0030 --- slixmpp/plugins/xep_0030/disco.py | 6 ++++++ 1 file changed, 6 insertions(+) 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) -- cgit v1.2.3