XEP-0392/CCG: prefer JID over nickname
This commit is contained in:
parent
d85ad57f1e
commit
348aabc290
1 changed files with 5 additions and 1 deletions
|
@ -59,7 +59,11 @@ class User:
|
||||||
theme = get_theme()
|
theme = get_theme()
|
||||||
if theme.ccg_palette:
|
if theme.ccg_palette:
|
||||||
# use XEP-0392 CCG
|
# use XEP-0392 CCG
|
||||||
fg_color = colors.ccg_text_to_color(theme.ccg_palette, self.nick)
|
if self.jid and self.jid.domain:
|
||||||
|
input_ = str(self.jid.bare)
|
||||||
|
else:
|
||||||
|
input_ = self.nick
|
||||||
|
fg_color = colors.ccg_text_to_color(theme.ccg_palette, input_)
|
||||||
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