summaryrefslogtreecommitdiff
path: root/sleekxmpp/plugins/xep_0128/extended_disco.py
diff options
context:
space:
mode:
authorLance Stout <lancestout@gmail.com>2012-04-03 10:58:31 -0700
committerLance Stout <lancestout@gmail.com>2012-04-06 15:09:26 -0400
commite0dd9c3618e92643ec323b162187e001673a59b7 (patch)
tree36c05efb5f42ddb9169e467b9980c1d87b4e48a2 /sleekxmpp/plugins/xep_0128/extended_disco.py
parent4921c44d0afc6d0f975e4ee1467b32b96bb576b7 (diff)
downloadslixmpp-e0dd9c3618e92643ec323b162187e001673a59b7.tar.gz
slixmpp-e0dd9c3618e92643ec323b162187e001673a59b7.tar.bz2
slixmpp-e0dd9c3618e92643ec323b162187e001673a59b7.tar.xz
slixmpp-e0dd9c3618e92643ec323b162187e001673a59b7.zip
Simplify registering API handler defaults.
Diffstat (limited to 'sleekxmpp/plugins/xep_0128/extended_disco.py')
-rw-r--r--sleekxmpp/plugins/xep_0128/extended_disco.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/sleekxmpp/plugins/xep_0128/extended_disco.py b/sleekxmpp/plugins/xep_0128/extended_disco.py
index 93f8e8f0..5adc2368 100644
--- a/sleekxmpp/plugins/xep_0128/extended_disco.py
+++ b/sleekxmpp/plugins/xep_0128/extended_disco.py
@@ -61,8 +61,7 @@ class XEP_0128(BasePlugin):
self.disco.del_extended_info = self.del_extended_info
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 set_extended_info(self, jid=None, node=None, **kwargs):
"""