Commit 0ed89234 authored by Link Mauve's avatar Link Mauve

Fix wrong quit char color when someone leaves a MUC.

parent 661ee90e
...@@ -334,20 +334,20 @@ class PrivateTab(OneToOneTab): ...@@ -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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment