summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormathieui <mathieui@mathieui.net>2014-04-14 22:59:40 +0200
committermathieui <mathieui@mathieui.net>2014-04-14 22:59:40 +0200
commit80ebe9edc041f7950c8858cd6176830c62b11ada (patch)
treea8375a02deb8053a9da69f55679513a6d5562080
parent3221534b0f77a00043032c1e350814f607a56380 (diff)
downloadpoezio-80ebe9edc041f7950c8858cd6176830c62b11ada.tar.gz
poezio-80ebe9edc041f7950c8858cd6176830c62b11ada.tar.bz2
poezio-80ebe9edc041f7950c8858cd6176830c62b11ada.tar.xz
poezio-80ebe9edc041f7950c8858cd6176830c62b11ada.zip
Fix the color of the message with /part
(it now uses the theme)
-rw-r--r--src/tabs/muctab.py11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/tabs/muctab.py b/src/tabs/muctab.py
index 94cfbd3e..a7e3f5e0 100644
--- a/src/tabs/muctab.py
+++ b/src/tabs/muctab.py
@@ -413,20 +413,21 @@ class MucTab(ChatTab):
"""
arg = arg.strip()
msg = None
+ info_col = get_theme().COLOR_INFORMATION_TEXT
if self.joined:
self.disconnect()
muc.leave_groupchat(self.core.xmpp, self.name, self.own_nick, arg)
if arg:
- msg = _("\x195}You left the chatroom (\x19o%s\x195})\x193}" % arg)
+ msg = _("\x19%(info_col)s}You left the chatroom (\x19o%(reason)s\x19%(info_col)s})" %
+ {'info_col': dump_tuple(info_col), 'reason': arg })
else:
- msg = _("\x195}You left the chatroom\x193}")
+ msg = _("\x19%(info_col)s}You left the chatroom" %
+ {'info_col': dump_tuple(info_col) })
self.add_message(msg, typ=2)
+ self.core.disable_private_tabs(self.name, reason=msg)
if self == self.core.current_tab():
self.refresh()
self.core.doupdate()
- else:
- msg = _("\x195}You left the chatroom\x193}")
- self.core.disable_private_tabs(self.name, reason=msg)
def command_close(self, arg):
"""