summaryrefslogtreecommitdiff
path: root/sleekxmpp
diff options
context:
space:
mode:
authorTom Nichols <tmnichols@gmail.com>2010-07-12 13:07:24 -0400
committerTom Nichols <tmnichols@gmail.com>2010-07-12 13:07:24 -0400
commit083ac3faaf6d3efb68b18a41ae9470ebbe57a90c (patch)
tree8b8675544d15ac2289d87e866aaf2ad3d935d266 /sleekxmpp
parenta909731b03b0165bd871469b36d31cda16a8e61f (diff)
downloadslixmpp-083ac3faaf6d3efb68b18a41ae9470ebbe57a90c.tar.gz
slixmpp-083ac3faaf6d3efb68b18a41ae9470ebbe57a90c.tar.bz2
slixmpp-083ac3faaf6d3efb68b18a41ae9470ebbe57a90c.tar.xz
slixmpp-083ac3faaf6d3efb68b18a41ae9470ebbe57a90c.zip
woops, broke resource binding request
Diffstat (limited to 'sleekxmpp')
-rw-r--r--sleekxmpp/__init__.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/sleekxmpp/__init__.py b/sleekxmpp/__init__.py
index cc1ca36e..80b1c05f 100644
--- a/sleekxmpp/__init__.py
+++ b/sleekxmpp/__init__.py
@@ -271,8 +271,8 @@ class ClientXMPP(basexmpp, XMLStream):
logging.debug("Requesting resource: %s" % self.resource)
res = ET.Element('resource')
res.text = self.resource
- iq = self.makeIqSet(res)
- iq.append(xml)
+ xml.append(res)
+ iq = self.makeIqSet(xml)
response = iq.send(priority=2,init=True)
#response = self.send(iq, self.Iq(sid=iq['id']))
self.set_jid(response.xml.find('{urn:ietf:params:xml:ns:xmpp-bind}bind/{urn:ietf:params:xml:ns:xmpp-bind}jid').text)