core, plugins: fixed bad namespace in stanza creation
This commit is contained in:
parent
20815b3ec5
commit
a6d8990e49
1 changed files with 41 additions and 41 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue