diff src/core/sat_main.py @ 536:a31abb97310d

core, plugins: fixed bad namespace in stanza creation
author Goffi <goffi@goffi.org>
date Thu, 01 Nov 2012 22:41:39 +0100
parents 8ee9113d307b
children 2c4016921403
line wrap: on
line diff
--- a/src/core/sat_main.py	Thu Nov 01 19:52:59 2012 +0100
+++ b/src/core/sat_main.py	Thu Nov 01 22:41:39 2012 +0100
@@ -490,13 +490,13 @@
             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