summaryrefslogtreecommitdiff
path: root/sleekxmpp/plugins/xep_0050/adhoc.py
diff options
context:
space:
mode:
Diffstat (limited to 'sleekxmpp/plugins/xep_0050/adhoc.py')
-rw-r--r--sleekxmpp/plugins/xep_0050/adhoc.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/sleekxmpp/plugins/xep_0050/adhoc.py b/sleekxmpp/plugins/xep_0050/adhoc.py
index fcf51b1a..fb3af7cf 100644
--- a/sleekxmpp/plugins/xep_0050/adhoc.py
+++ b/sleekxmpp/plugins/xep_0050/adhoc.py
@@ -218,6 +218,9 @@ class XEP_0050(BasePlugin):
for stanza in iq['command']['substanzas']:
payload.append(stanza)
+ if len(payload) == 1:
+ payload = payload[0]
+
interfaces = set([item.plugin_attrib for item in payload])
payload_classes = set([item.__class__ for item in payload])