diff options
author | Lance Stout <lancestout@gmail.com> | 2012-04-30 08:27:10 -0700 |
---|---|---|
committer | Lance Stout <lancestout@gmail.com> | 2012-04-30 08:27:10 -0700 |
commit | f53b815855581776b7751ab90d3b5e3c2a7b8fc5 (patch) | |
tree | 18e7b30f914e1c98e3c96ff2920daeb7860d2ef7 /sleekxmpp | |
parent | bf8a9dc20d570d16ff9a0761e504c196cfcebee3 (diff) | |
download | slixmpp-f53b815855581776b7751ab90d3b5e3c2a7b8fc5.tar.gz slixmpp-f53b815855581776b7751ab90d3b5e3c2a7b8fc5.tar.bz2 slixmpp-f53b815855581776b7751ab90d3b5e3c2a7b8fc5.tar.xz slixmpp-f53b815855581776b7751ab90d3b5e3c2a7b8fc5.zip |
Allow providing initial payload to adhoc commands.
Diffstat (limited to 'sleekxmpp')
-rw-r--r-- | sleekxmpp/plugins/xep_0050/adhoc.py | 4 |
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 |