XEP-0392 MUC: Base User color solely on nickname
This commit is contained in:
parent
1edabb0c77
commit
2ac65137aa
1 changed files with 1 additions and 2 deletions
|
@ -56,8 +56,7 @@ class User(object):
|
||||||
if theme.ccg_palette:
|
if theme.ccg_palette:
|
||||||
# use XEP-0392 CCG
|
# use XEP-0392 CCG
|
||||||
fg_color = colors.ccg_text_to_color(
|
fg_color = colors.ccg_text_to_color(
|
||||||
theme.ccg_palette, self.jid.bare
|
theme.ccg_palette, self.nick)
|
||||||
if self.jid and self.jid.bare else self.nick)
|
|
||||||
self.color = fg_color, -1
|
self.color = fg_color, -1
|
||||||
else:
|
else:
|
||||||
mod = len(theme.LIST_COLOR_NICKNAMES)
|
mod = len(theme.LIST_COLOR_NICKNAMES)
|
||||||
|
|
Loading…
Reference in a new issue