From e0dd9c3618e92643ec323b162187e001673a59b7 Mon Sep 17 00:00:00 2001 From: Lance Stout Date: Tue, 3 Apr 2012 10:58:31 -0700 Subject: Simplify registering API handler defaults. --- sleekxmpp/plugins/xep_0115/caps.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'sleekxmpp/plugins/xep_0115') diff --git a/sleekxmpp/plugins/xep_0115/caps.py b/sleekxmpp/plugins/xep_0115/caps.py index 84881980..3509feec 100644 --- a/sleekxmpp/plugins/xep_0115/caps.py +++ b/sleekxmpp/plugins/xep_0115/caps.py @@ -78,8 +78,7 @@ class XEP_0115(BasePlugin): self.static = StaticCaps(self.xmpp, disco.static) 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) self._run_node_handler = disco._run_node_handler -- cgit v1.2.3