summary refs log tree commit diff
path: root/chat.h
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2021-03-08 10:47:18 -0500
committerJune McEnroe <june@causal.agency>2021-03-08 10:47:18 -0500
commit6435dfdda5c50b0244260d881210538c81d43fa0 (patch)
treee86f4c0a2c54a1a11a4f7bd78f1a294e6cb95a25 /chat.h
parentAdd bindings for C-Left and C-Right (diff)
downloadcatgirl-6435dfdda5c50b0244260d881210538c81d43fa0.tar.gz
catgirl-6435dfdda5c50b0244260d881210538c81d43fa0.zip
Disable nick and channel colors with hash bound 0
Diffstat (limited to '')
-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) {