From 3ee3fdca91a9006dc5e626c915c34258fe4834a3 Mon Sep 17 00:00:00 2001 From: Lance Stout Date: Sun, 1 Apr 2012 19:31:43 -0700 Subject: [PATCH] Fix XEP-0115 with the new API registry. --- sleekxmpp/plugins/xep_0115/caps.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/sleekxmpp/plugins/xep_0115/caps.py b/sleekxmpp/plugins/xep_0115/caps.py index fee86f5b..84881980 100644 --- a/sleekxmpp/plugins/xep_0115/caps.py +++ b/sleekxmpp/plugins/xep_0115/caps.py @@ -78,9 +78,8 @@ class XEP_0115(BasePlugin): self.static = StaticCaps(self.xmpp, disco.static) for op in self._disco_ops: - self.api.register(getattr(self.static, op), 'xep_0115', op) - self.api.register_default(getattr(self.static, op), - 'xep_0115', op) + self.api.register(getattr(self.static, op), op) + self.api.register_default(getattr(self.static, op), op) self._run_node_handler = disco._run_node_handler