JID.bare is always a str
This commit is contained in:
parent
348aabc290
commit
2b70b57f32
1 changed files with 1 additions and 1 deletions
|
@ -60,7 +60,7 @@ class User:
|
||||||
if theme.ccg_palette:
|
if theme.ccg_palette:
|
||||||
# use XEP-0392 CCG
|
# use XEP-0392 CCG
|
||||||
if self.jid and self.jid.domain:
|
if self.jid and self.jid.domain:
|
||||||
input_ = str(self.jid.bare)
|
input_ = self.jid.bare
|
||||||
else:
|
else:
|
||||||
input_ = self.nick
|
input_ = self.nick
|
||||||
fg_color = colors.ccg_text_to_color(theme.ccg_palette, input_)
|
fg_color = colors.ccg_text_to_color(theme.ccg_palette, input_)
|
||||||
|
|
Loading…
Reference in a new issue