Allow providing initial payload to adhoc commands.
This commit is contained in:
parent
bf8a9dc20d
commit
f53b815855
1 changed files with 3 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue