plugin XEP-0059: fixed bad disco handling

This commit is contained in:
Goffi 2015-08-18 09:01:18 +02:00
commit a667873b99

View file

@ -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)]