core, plugins: fixed bad namespace in stanza creation

This commit is contained in:
Goffi 2012-11-01 22:41:39 +01:00
commit a6d8990e49

View file

@ -163,7 +163,7 @@ class XEP_0047():
xmlstream.addObserver(event_data, observer_cb, profile = profile)
xmlstream.addOnetimeObserver(event_close, self.streamClosing, profile = profile)
#finally, we send the accept stanza
result = domish.Element(('', 'iq'))
result = domish.Element((None, 'iq'))
result['type'] = 'result'
result['id'] = IQ['id']
result['to'] = IQ['from']
@ -174,7 +174,7 @@ class XEP_0047():
debug(_("IBB stream closing"))
data_elt = IQ.firstChildElement()
sid = data_elt.getAttribute('sid')
result = domish.Element(('', 'iq'))
result = domish.Element((None, 'iq'))
result['type'] = 'result'
result['id'] = IQ['id']
result['to'] = IQ['from']
@ -187,7 +187,7 @@ class XEP_0047():
if self._manageDataElt(data_elt, 'iq', IQ['id'], jid.JID(IQ['from'])):
#and send a success answer
result = domish.Element(('', 'iq'))
result = domish.Element((None, 'iq'))
result['type'] = 'result'
result['id'] = IQ['id']
result['to'] = IQ['from']
@ -244,7 +244,7 @@ class XEP_0047():
@param iq_id: IQ id
@param to_jid: addressee
@param xmlstream: XML stream to use to send the error"""
result = domish.Element(('', 'iq'))
result = domish.Element((None, 'iq'))
result['type'] = 'result'
result['id'] = iq_id
result['to'] = to_jid