From 083ac3faaf6d3efb68b18a41ae9470ebbe57a90c Mon Sep 17 00:00:00 2001 From: Tom Nichols Date: Mon, 12 Jul 2010 13:07:24 -0400 Subject: woops, broke resource binding request --- sleekxmpp/__init__.py | 4 ++-- 1 file 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) -- cgit v1.2.3