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:
Lance Stout 2012-03-12 09:41:35 -07:00
parent 64c46562d3
commit 610d366bdb

View file

@ -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):
""" """