The ifrom parameter doesn't need special treatment.

This commit is contained in:
Lance Stout
2011-08-26 22:04:06 -07:00
parent 3fb3f63e51
commit 2d90deb96a
6 changed files with 37 additions and 47 deletions

View File

@@ -431,8 +431,7 @@ class xep_0050(base_plugin):
iq = self.xmpp.Iq()
iq['type'] = 'set'
iq['to'] = jid
if ifrom:
iq['from'] = ifrom
iq['from'] = ifrom
iq['command']['node'] = node
iq['command']['action'] = action
if sessionid is not None:
@@ -482,9 +481,8 @@ class xep_0050(base_plugin):
iq = self.xmpp.Iq()
iq['type'] = 'set'
iq['to'] = jid
if ifrom:
iq['from'] = ifrom
session['from'] = ifrom
iq['from'] = ifrom
session['from'] = ifrom
iq['command']['node'] = node
iq['command']['action'] = 'execute'
sessionid = 'client:pending_' + iq['id']