# HG changeset patch # User Goffi # Date 1439881278 -7200 # Node ID cbf38047ca60d9ab7f3518be1973069e550cae18 # Parent fecd502743b327987bc9fed72b8a7d0acbf4c2d9 plugin XEP-0059: fixed bad disco handling diff -r fecd502743b3 -r cbf38047ca60 src/plugins/plugin_xep_0059.py --- a/src/plugins/plugin_xep_0059.py Thu Aug 20 10:22:46 2015 +0200 +++ b/src/plugins/plugin_xep_0059.py Tue Aug 18 09:01:18 2015 +0200 @@ -38,7 +38,7 @@ "type": "XEP", "protocols": ["XEP-0059"], "main": "XEP_0059", - "handler": "no", + "handler": "yes", "description": _("""Implementation of Result Set Management""") } @@ -49,15 +49,13 @@ 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)]