summaryrefslogtreecommitdiff
path: root/sleekxmpp/plugins/xep_0050
diff options
context:
space:
mode:
Diffstat (limited to 'sleekxmpp/plugins/xep_0050')
-rw-r--r--sleekxmpp/plugins/xep_0050/adhoc.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/sleekxmpp/plugins/xep_0050/adhoc.py b/sleekxmpp/plugins/xep_0050/adhoc.py
index d546c27d..dc99e343 100644
--- a/sleekxmpp/plugins/xep_0050/adhoc.py
+++ b/sleekxmpp/plugins/xep_0050/adhoc.py
@@ -475,8 +475,10 @@ class XEP_0050(BasePlugin):
session['jid'] = jid
session['node'] = node
session['timestamp'] = time.time()
- session['payload'] = None
session['block'] = block
+ if 'payload' not in session:
+ session['payload'] = None
+
iq = self.xmpp.Iq()
iq['type'] = 'set'
iq['to'] = jid