summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonas Wielicki <j.wielicki@sotecware.net>2017-11-26 13:21:33 +0100
committerJonas Wielicki <j.wielicki@sotecware.net>2017-11-26 13:36:00 +0100
commit2ac65137aa1fa75ac466cd83020ea54d6247d5eb (patch)
treec703465730624c05a5d66360960fa8a63623619e
parent1edabb0c77227c32d04478f00b0539b7d1418915 (diff)
downloadpoezio-2ac65137aa1fa75ac466cd83020ea54d6247d5eb.tar.gz
poezio-2ac65137aa1fa75ac466cd83020ea54d6247d5eb.tar.bz2
poezio-2ac65137aa1fa75ac466cd83020ea54d6247d5eb.tar.xz
poezio-2ac65137aa1fa75ac466cd83020ea54d6247d5eb.zip
XEP-0392 MUC: Base User color solely on nickname
-rw-r--r--poezio/user.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/poezio/user.py b/poezio/user.py
index c69d241c..ae70f6f8 100644
--- a/poezio/user.py
+++ b/poezio/user.py
@@ -56,8 +56,7 @@ class User(object):
if theme.ccg_palette:
# use XEP-0392 CCG
fg_color = colors.ccg_text_to_color(
- theme.ccg_palette, self.jid.bare
- if self.jid and self.jid.bare else self.nick)
+ theme.ccg_palette, self.nick)
self.color = fg_color, -1
else:
mod = len(theme.LIST_COLOR_NICKNAMES)