removed apply()s from xep 50
This commit is contained in:
parent
2349f849e3
commit
5dc967a360
@ -82,7 +82,7 @@ class xep_0050(base.base_plugin):
|
|||||||
pointer = self.sessions[sessionid]['next']
|
pointer = self.sessions[sessionid]['next']
|
||||||
results = self.xmpp['xep_0004'].makeForm('result')
|
results = self.xmpp['xep_0004'].makeForm('result')
|
||||||
results.fromXML(in_command.find('{jabber:x:data}x'))
|
results.fromXML(in_command.find('{jabber:x:data}x'))
|
||||||
apply(pointer, (results,sessionid))
|
pointer(results,sessioni)
|
||||||
self.xmpp.send(self.makeCommand(xml.attrib['from'], in_command.attrib['node'], form=None, id=xml.attrib['id'], sessionid=sessionid, status='completed', actions=[]))
|
self.xmpp.send(self.makeCommand(xml.attrib['from'], in_command.attrib['node'], form=None, id=xml.attrib['id'], sessionid=sessionid, status='completed', actions=[]))
|
||||||
del self.sessions[in_command.get('sessionid')]
|
del self.sessions[in_command.get('sessionid')]
|
||||||
|
|
||||||
@ -93,7 +93,7 @@ class xep_0050(base.base_plugin):
|
|||||||
pointer = self.sessions[sessionid]['next']
|
pointer = self.sessions[sessionid]['next']
|
||||||
results = self.xmpp['xep_0004'].makeForm('result')
|
results = self.xmpp['xep_0004'].makeForm('result')
|
||||||
results.fromXML(in_command.find('{jabber:x:data}x'))
|
results.fromXML(in_command.find('{jabber:x:data}x'))
|
||||||
form, npointer, next = apply(pointer, (results,sessionid))
|
form, npointer, next = pointer(results,sessionid)
|
||||||
self.sessions[sessionid]['next'] = npointer
|
self.sessions[sessionid]['next'] = npointer
|
||||||
self.sessions[sessionid]['past'].append((form, pointer))
|
self.sessions[sessionid]['past'].append((form, pointer))
|
||||||
actions = []
|
actions = []
|
||||||
|
Loading…
Reference in New Issue
Block a user