plugin XEP-0059: fixed bad disco handling
This commit is contained in:
parent
9295bba396
commit
a667873b99
1 changed files with 4 additions and 6 deletions
|
|
@ -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)]
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue