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

@ -490,13 +490,13 @@ class SAT(service.Service):
return
debug(_("Sending jabber message of type [%(type)s] to %(to)s...") % {"type": mess_data["type"], "to": to})
message = domish.Element(('jabber:client','message'))
message = domish.Element((None,'message'))
message["to"] = mess_data["to"].full()
message["from"] = current_jid.full()
message["type"] = mess_data["type"]
if mess_data["subject"]:
message.addElement("subject", "jabber:client", subject)
message.addElement("body", "jabber:client", mess_data["message"])
message.addElement("subject", None, subject)
message.addElement("body", None, mess_data["message"])
client.xmlstream.send(message)
if mess_data["type"]!="groupchat":
self.memory.addToHistory(current_jid, jid.JID(to), unicode(mess_data["message"]), unicode(mess_data["type"]), profile=profile) #we don't add groupchat message to history, as we get them back