summaryrefslogtreecommitdiff
path: root/sleekxmpp/plugins/xep_0030
diff options
context:
space:
mode:
Diffstat (limited to 'sleekxmpp/plugins/xep_0030')
-rw-r--r--sleekxmpp/plugins/xep_0030/disco.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/sleekxmpp/plugins/xep_0030/disco.py b/sleekxmpp/plugins/xep_0030/disco.py
index 76824e1c..6f5b48d3 100644
--- a/sleekxmpp/plugins/xep_0030/disco.py
+++ b/sleekxmpp/plugins/xep_0030/disco.py
@@ -119,8 +119,7 @@ class XEP_0030(BasePlugin):
'get_cached_info', 'supports', 'has_identity']
for op in self._disco_ops:
- self.api.register(getattr(self.static, op), op)
- self.api.register_default(getattr(self.static, op), op)
+ self.api.register(getattr(self.static, op), op, default=True)
def _add_disco_op(self, op, default_handler):
self.api.register(default_handler, op)