summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authormathieui <mathieui@mathieui.net>2015-09-05 18:11:38 +0200
committermathieui <mathieui@mathieui.net>2015-09-05 18:11:38 +0200
commit275affbed7f2619c0a851c0679dd3ff872e4bcd0 (patch)
tree5247fe2e1ad8ed6417084732df1f9bb604386d38 /src
parent706c39664b86e34254f3aab9b0d72f29a94a6b3f (diff)
downloadpoezio-275affbed7f2619c0a851c0679dd3ff872e4bcd0.tar.gz
poezio-275affbed7f2619c0a851c0679dd3ff872e4bcd0.tar.bz2
poezio-275affbed7f2619c0a851c0679dd3ff872e4bcd0.tar.xz
poezio-275affbed7f2619c0a851c0679dd3ff872e4bcd0.zip
Use the right text color in /info
Diffstat (limited to 'src')
-rw-r--r--src/tabs/muctab.py16
1 files changed, 11 insertions, 5 deletions
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 '')