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:
parent
64c46562d3
commit
610d366bdb
1 changed files with 1 additions and 0 deletions
|
@ -111,6 +111,7 @@ class XEP_0050(BasePlugin):
|
||||||
threaded=self.threaded)
|
threaded=self.threaded)
|
||||||
|
|
||||||
self.xmpp['xep_0030'].add_feature(Command.namespace)
|
self.xmpp['xep_0030'].add_feature(Command.namespace)
|
||||||
|
self.xmpp['xep_0030'].set_items(node=Command.namespace, items=tuple())
|
||||||
|
|
||||||
def set_backend(self, db):
|
def set_backend(self, db):
|
||||||
"""
|
"""
|
||||||
|
|
Loading…
Reference in a new issue