Primitivus: sexy nick in chat window
This commit is contained in:
parent
5f3463b147
commit
12b166ca89
1 changed files with 2 additions and 1 deletions
|
|
@ -66,7 +66,8 @@ class ChatText(urwid.FlowWidget):
|
|||
if self.parent.show_short_nick:
|
||||
render_txt.append(('my_nick' if my_mess else 'other_nick',"**" if my_mess else "*"))
|
||||
else:
|
||||
render_txt.append(('my_nick' if my_mess else 'other_nick',"[%s] " % self.from_jid))
|
||||
nick = self.from_jid.resource if self.parent.type == "group" else (self.parent.host.CM.getAttr(self.from_jid,'nick') or self.parent.host.CM.getAttr(self.from_jid,'name') or self.from_jid.node)
|
||||
render_txt.append(('my_nick' if my_mess else 'other_nick',"[%s] " % nick))
|
||||
render_txt.append(self.message)
|
||||
return urwid.Text(render_txt, align=self.align)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue