summaryrefslogtreecommitdiff
path: root/sleekxmpp/plugins/xep_0050/adhoc.py
diff options
context:
space:
mode:
authorLance Stout <lancestout@gmail.com>2012-03-12 09:41:35 -0700
committerLance Stout <lancestout@gmail.com>2012-03-12 19:32:20 -0700
commit610d366bdb7d6219360f039655739d4acbf31480 (patch)
tree828ec9af8322baddfda610f4fbc1ed9908c3e269 /sleekxmpp/plugins/xep_0050/adhoc.py
parent64c46562d3dce376fe7c6a1462328531d4661960 (diff)
downloadslixmpp-610d366bdb7d6219360f039655739d4acbf31480.tar.gz
slixmpp-610d366bdb7d6219360f039655739d4acbf31480.tar.bz2
slixmpp-610d366bdb7d6219360f039655739d4acbf31480.tar.xz
slixmpp-610d366bdb7d6219360f039655739d4acbf31480.zip
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.
Diffstat (limited to 'sleekxmpp/plugins/xep_0050/adhoc.py')
-rw-r--r--sleekxmpp/plugins/xep_0050/adhoc.py1
1 files changed, 1 insertions, 0 deletions
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):
"""