Mercurial > libervia-backend
diff src/sat.tac @ 264:27bc5d7732a3
core: fixed default message type
author | Goffi <goffi@goffi.org> |
---|---|
date | Sun, 23 Jan 2011 14:14:47 +0100 |
parents | af3d4f11fe43 |
children | c4b84a2d2ad1 |
line wrap: on
line diff
--- a/src/sat.tac Sun Jan 23 12:56:09 2011 +0100 +++ b/src/sat.tac Sun Jan 23 14:14:47 2011 +0100 @@ -140,8 +140,8 @@ return for e in message.elements(): if e.name == "body": - type = message['type'] if message.hasAttribute('type') else 'chat' #FIXME: check specs - self.host.bridge.newMessage(message["from"], e.children[0], type, profile=self.parent.profile) + 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.memory.addToHistory(self.parent.jid, jid.JID(message["from"]), self.parent.jid, "chat", e.children[0]) break