summaryrefslogtreecommitdiff
path: root/sleekxmpp/plugins/xep_0050.py
diff options
context:
space:
mode:
authorNathan Fritz <fritzy@netflint.net>2010-01-15 21:07:28 -0800
committerNathan Fritz <fritzy@netflint.net>2010-01-15 21:07:28 -0800
commite39a2395d7d5b1490e66316cd46b3f31b787cb37 (patch)
tree64579f2b44aa6fcf37c18f0029aa4021ade940c2 /sleekxmpp/plugins/xep_0050.py
parent5345e9a46ba6b862944bcddacd73fba448758109 (diff)
downloadslixmpp-e39a2395d7d5b1490e66316cd46b3f31b787cb37.tar.gz
slixmpp-e39a2395d7d5b1490e66316cd46b3f31b787cb37.tar.bz2
slixmpp-e39a2395d7d5b1490e66316cd46b3f31b787cb37.tar.xz
slixmpp-e39a2395d7d5b1490e66316cd46b3f31b787cb37.zip
xep 30 and 50 always reply from jid iq sent to
Diffstat (limited to 'sleekxmpp/plugins/xep_0050.py')
-rw-r--r--sleekxmpp/plugins/xep_0050.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/sleekxmpp/plugins/xep_0050.py b/sleekxmpp/plugins/xep_0050.py
index b75a675c..0ca66ddb 100644
--- a/sleekxmpp/plugins/xep_0050.py
+++ b/sleekxmpp/plugins/xep_0050.py
@@ -62,6 +62,7 @@ class xep_0050(base.base_plugin):
name, form, pointer, multi = self.commands[node]
self.sessions[sessionid] = {}
self.sessions[sessionid]['jid'] = xml.get('from')
+ self.sessions[sessionid]['to'] = xml.get('to')
self.sessions[sessionid]['past'] = [(form, None)]
self.sessions[sessionid]['next'] = pointer
npointer = pointer
@@ -133,6 +134,8 @@ class xep_0050(base.base_plugin):
command.append(xmlactions)
if not sessionid:
sessionid = self.getNewSession()
+ else:
+ iq.attrib['from'] = self.sessions[sessionid]['to']
command.attrib['sessionid'] = sessionid
if form is not None:
if hasattr(form,'getXML'):