Allow providing initial payload to adhoc commands.

This commit is contained in:
Lance Stout 2012-04-30 08:27:10 -07:00
parent bf8a9dc20d
commit f53b815855

View file

@ -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