From 275affbed7f2619c0a851c0679dd3ff872e4bcd0 Mon Sep 17 00:00:00 2001 From: mathieui Date: Sat, 5 Sep 2015 18:11:38 +0200 Subject: Use the right text color in /info --- src/tabs/muctab.py | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) (limited to 'src') diff --git a/src/tabs/muctab.py b/src/tabs/muctab.py index bb10779a..02979f09 100644 --- a/src/tabs/muctab.py +++ b/src/tabs/muctab.py @@ -356,23 +356,29 @@ class MucTab(ChatTab): nick = args[0] user = self.get_user_by_name(nick) if not user: - return self.core.information("Unknown user: %s" % nick) + return self.core.information("Unknown user: %s" % nick, "Error") theme = get_theme() + inf = '\x19' + dump_tuple(theme.COLOR_INFORMATION_TEXT) + '}' if user.jid: - user_jid = ' (\x19%s}%s\x19o)' % ( + user_jid = '%s (\x19%s}%s\x19o%s)' % ( + inf, dump_tuple(theme.COLOR_MUC_JID), - user.jid) + user.jid, + inf) else: user_jid = '' - info = ('\x19%s}%s\x19o%s: show: \x19%s}%s\x19o, affiliation:' - ' \x19%s}%s\x19o, role: \x19%s}%s\x19o%s') % ( + info = ('\x19%s}%s\x19o%s%s: show: \x19%s}%s\x19o%s, affiliation:' + ' \x19%s}%s\x19o%s, role: \x19%s}%s\x19o%s') % ( dump_tuple(user.color), nick, user_jid, + inf, dump_tuple(theme.color_show(user.show)), user.show or 'Available', + inf, dump_tuple(theme.color_role(user.role)), user.affiliation or 'None', + inf, dump_tuple(theme.color_role(user.role)), user.role or 'None', '\n%s' % user.status if user.status else '') -- cgit v1.2.3