diff options
author | Lance Stout <lancestout@gmail.com> | 2012-04-03 10:58:31 -0700 |
---|---|---|
committer | Lance Stout <lancestout@gmail.com> | 2012-04-06 15:09:26 -0400 |
commit | e0dd9c3618e92643ec323b162187e001673a59b7 (patch) | |
tree | 36c05efb5f42ddb9169e467b9980c1d87b4e48a2 /sleekxmpp/plugins/xep_0030 | |
parent | 4921c44d0afc6d0f975e4ee1467b32b96bb576b7 (diff) | |
download | slixmpp-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_0030')
-rw-r--r-- | sleekxmpp/plugins/xep_0030/disco.py | 3 |
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) |