Mercurial > libervia-backend
diff frontends/wix/chat.py @ 80:9681f18d06bd
wix: basic dialog to join MUC room, jid node is now displayed in conversations instead of full jid
author | Goffi <goffi@goffi.org> |
---|---|
date | Thu, 01 Apr 2010 18:57:57 +1100 |
parents | db0a0f000e37 |
children | fc7583282d40 |
line wrap: on
line diff
--- a/frontends/wix/chat.py Wed Mar 31 19:56:43 2010 +1100 +++ b/frontends/wix/chat.py Thu Apr 01 18:57:57 2010 +1100 @@ -178,7 +178,7 @@ """Print the message with differents colors depending on where it comes from.""" jid=JID(from_jid) print "printMessage, jid=",jid,"type=",self.type - nick = jid.resource if self.type == "group" else (self.host.CM.getAttr(jid,'nick') or self.host.CM.getAttr(jid,'name') or jid) + nick = jid.resource if self.type == "group" else (self.host.CM.getAttr(jid,'nick') or self.host.CM.getAttr(jid,'name') or jid.node) mymess = (jid.resource == self.nick) if self.type == "group" else (jid.short == self.host.profiles[profile]['whoami'].short) #mymess = True if message comes from local user _font = wx.Font(self.font["points"], self.font["family"], wx.NORMAL, wx.BOLD) self.chatWindow.SetDefaultStyle(wx.TextAttr( "BLACK" if mymess else "BLUE", font=_font))