.lower() strings when hash-colorizing them
This commit is contained in:
parent
d43e96f7e7
commit
727fb3427d
1 changed files with 1 additions and 1 deletions
|
@ -43,7 +43,7 @@ def color(s: str, foreground: consts.IRCColor,
|
|||
|
||||
HASH_COLORS = list(range(2, 16))
|
||||
def hash_colorize(s: str):
|
||||
code = sum(ord(c) for c in s)%len(HASH_COLORS)
|
||||
code = sum(ord(c) for c in s.lower())%len(HASH_COLORS)
|
||||
return color(s, consts.COLOR_CODES[code])
|
||||
|
||||
def bold(s: str) -> str:
|
||||
|
|
Loading…
Reference in a new issue