Fix wrong quit char color when someone leaves a MUC.
This commit is contained in:
parent
661ee90ea2
commit
0ed8923459
1 changed files with 4 additions and 4 deletions
|
@ -334,20 +334,20 @@ class PrivateTab(OneToOneTab):
|
||||||
color = dump_tuple(get_theme().COLOR_REMOTE_USER)
|
color = dump_tuple(get_theme().COLOR_REMOTE_USER)
|
||||||
|
|
||||||
if not status_message:
|
if not status_message:
|
||||||
self.add_message('\x19%(join_col)s}%(spec)s \x19%(nick_col)s}'
|
self.add_message('\x19%(quit_col)s}%(spec)s \x19%(nick_col)s}'
|
||||||
'%(nick)s\x19%(info_col)s} has left the room' % {
|
'%(nick)s\x19%(info_col)s} has left the room' % {
|
||||||
'nick': user.nick, 'spec': get_theme().CHAR_QUIT,
|
'nick': user.nick, 'spec': get_theme().CHAR_QUIT,
|
||||||
'nick_col': color,
|
'nick_col': color,
|
||||||
'join_col': dump_tuple(get_theme().COLOR_JOIN_CHAR),
|
'quit_col': dump_tuple(get_theme().COLOR_QUIT_CHAR),
|
||||||
'info_col': dump_tuple(get_theme().COLOR_INFORMATION_TEXT)},
|
'info_col': dump_tuple(get_theme().COLOR_INFORMATION_TEXT)},
|
||||||
typ=2)
|
typ=2)
|
||||||
else:
|
else:
|
||||||
self.add_message('\x19%(join_col)s}%(spec)s \x19%(nick_col)s}'
|
self.add_message('\x19%(quit_col)s}%(spec)s \x19%(nick_col)s}'
|
||||||
'%(nick)s\x19%(info_col)s} has left the room'
|
'%(nick)s\x19%(info_col)s} has left the room'
|
||||||
' (%(status)s)' % { 'status': status_message,
|
' (%(status)s)' % { 'status': status_message,
|
||||||
'nick': user.nick, 'spec': get_theme().CHAR_QUIT,
|
'nick': user.nick, 'spec': get_theme().CHAR_QUIT,
|
||||||
'nick_col': color,
|
'nick_col': color,
|
||||||
'join_col': dump_tuple(get_theme().COLOR_JOIN_CHAR),
|
'quit_col': dump_tuple(get_theme().COLOR_QUIT_CHAR),
|
||||||
'info_col': dump_tuple(get_theme().COLOR_INFORMATION_TEXT)},
|
'info_col': dump_tuple(get_theme().COLOR_INFORMATION_TEXT)},
|
||||||
typ=2)
|
typ=2)
|
||||||
return self.core.current_tab() is self
|
return self.core.current_tab() is self
|
||||||
|
|
Loading…
Reference in a new issue