changeset 1465:cbf38047ca60

plugin XEP-0059: fixed bad disco handling
author Goffi <goffi@goffi.org>
date Tue, 18 Aug 2015 09:01:18 +0200
parents fecd502743b3
children 2184d5f496b5
files src/plugins/plugin_xep_0059.py
diffstat 1 files changed, 4 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- 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)]