From 610d366bdb7d6219360f039655739d4acbf31480 Mon Sep 17 00:00:00 2001 From: Lance Stout Date: Mon, 12 Mar 2012 09:41:35 -0700 Subject: [PATCH] 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. --- sleekxmpp/plugins/xep_0050/adhoc.py | 1 + 1 file changed, 1 insertion(+) diff --git a/sleekxmpp/plugins/xep_0050/adhoc.py b/sleekxmpp/plugins/xep_0050/adhoc.py index 2c6cfd6e..8f2ea5c2 100644 --- a/sleekxmpp/plugins/xep_0050/adhoc.py +++ b/sleekxmpp/plugins/xep_0050/adhoc.py @@ -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): """