summaryrefslogtreecommitdiff
path: root/chat.h
diff options
context:
space:
mode:
authorC. McEnroe2021-03-08 10:47:18 -0500
committerC. McEnroe2021-03-08 10:47:18 -0500
commit6435dfdda5c50b0244260d881210538c81d43fa0 (patch)
treee86f4c0a2c54a1a11a4f7bd78f1a294e6cb95a25 /chat.h
parent8f578ee73d8a8b4b2f94782425cca11c2455a506 (diff)
Disable nick and channel colors with hash bound 0
Diffstat (limited to 'chat.h')
-rw-r--r--chat.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/chat.h b/chat.h
index 6a21930..8249564 100644
--- a/chat.h
+++ b/chat.h
@@ -139,6 +139,7 @@ static inline uint idFor(const char *name) {
extern uint32_t hashInit;
extern uint32_t hashBound;
static inline enum Color hash(const char *str) {
+ if (hashBound < Blue) return Default;
if (*str == '~') str++;
uint32_t hash = hashInit;
for (; *str; ++str) {