Mercurial > libervia-backend
diff src/sat.tac @ 276:a00e87d48213
bridge, bridge constructor: fixed mix stuff
author | Goffi <goffi@goffi.org> |
---|---|
date | Sun, 30 Jan 2011 22:54:58 +0100 |
parents | c1ad04586edf |
children | 05caa87196e6 |
line wrap: on
line diff
--- a/src/sat.tac Tue Jan 25 16:39:27 2011 +0100 +++ b/src/sat.tac Sun Jan 30 22:54:58 2011 +0100 @@ -141,7 +141,7 @@ for e in message.elements(): if e.name == "body": mess_type = message['type'] if message.hasAttribute('type') else 'normal' - self.host.bridge.newMessage(message["from"], e.children[0], mess_type, profile=self.parent.profile) + self.host.bridge.newMessage(message["from"], e.children[0], mess_type, message['to'], profile=self.parent.profile) self.host.memory.addToHistory(self.parent.jid, jid.JID(message["from"]), self.parent.jid, "chat", e.children[0]) break @@ -616,7 +616,7 @@ self.profiles[profile].xmlstream.send(message) self.memory.addToHistory(current_jid, current_jid, jid.JID(to), message["type"], unicode(msg)) if type!="groupchat": - self.bridge.newMessage(message['from'], unicode(msg), to=message['to'], type=type, profile=profile) #We send back the message, so all clients are aware of it + self.bridge.newMessage(message['from'], unicode(msg), mess_type=type, to_jid=message['to'], profile=profile) #We send back the message, so all clients are aware of it def setPresence(self, to="", show="", priority = 0, statuses={}, profile_key='@DEFAULT@'):