Commit 2ac65137 authored by Jonas Schäfer's avatar Jonas Schäfer

XEP-0392 MUC: Base User color solely on nickname

parent 1edabb0c
......@@ -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)
......
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