From a667873b991018b1ab0ae3ec4516ec2e95471cb3 Mon Sep 17 00:00:00 2001 From: Goffi Date: Tue, 18 Aug 2015 09:01:18 +0200 Subject: [PATCH] plugin XEP-0059: fixed bad disco handling --- src/plugins/plugin_xep_0059.py | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/src/plugins/plugin_xep_0059.py b/src/plugins/plugin_xep_0059.py index dc53dc5e..7786c2db 100644 --- a/src/plugins/plugin_xep_0059.py +++ b/src/plugins/plugin_xep_0059.py @@ -38,7 +38,7 @@ PLUGIN_INFO = { "type": "XEP", "protocols": ["XEP-0059"], "main": "XEP_0059", - "handler": "no", + "handler": "yes", "description": _("""Implementation of Result Set Management""") } @@ -49,15 +49,13 @@ class XEP_0059(object): def __init__(self, host): log.info(_("Result Set Management plugin initialization")) + def getHandler(self, profile): + return XEP_0059_handler() + class XEP_0059_handler(XMPPHandler): implements(iwokkel.IDisco) - def __init__(self, plugin_parent, profile): - self.plugin_parent = plugin_parent - self.host = plugin_parent.host - self.profile = profile - def getDiscoInfo(self, requestor, target, nodeIdentifier=''): return [disco.DiscoFeature(NS_RSM)]