fixed resource binding element to conform to spec

This commit is contained in:
Nathan Fritz 2010-07-20 11:20:47 -07:00
parent 9fcd2e93a3
commit ca2c421e6c

View file

@ -221,6 +221,7 @@ class ClientXMPP(basexmpp, XMLStream):
def handler_bind_resource(self, xml): def handler_bind_resource(self, xml):
logging.debug("Requesting resource: %s" % self.resource) logging.debug("Requesting resource: %s" % self.resource)
xml.clear()
iq = self.Iq(stype='set') iq = self.Iq(stype='set')
if self.resource: if self.resource:
res = ET.Element('resource') res = ET.Element('resource')