Ensure the adhoc command items node exists.
If the plugin is loaded and no commands are defined, we can at least return a proper empty response instead of an item-not-found error.
This commit is contained in:
@@ -111,6 +111,7 @@ class XEP_0050(BasePlugin):
|
||||
threaded=self.threaded)
|
||||
|
||||
self.xmpp['xep_0030'].add_feature(Command.namespace)
|
||||
self.xmpp['xep_0030'].set_items(node=Command.namespace, items=tuple())
|
||||
|
||||
def set_backend(self, db):
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user