From 6435dfdda5c50b0244260d881210538c81d43fa0 Mon Sep 17 00:00:00 2001 From: "C. McEnroe" Date: Mon, 8 Mar 2021 10:47:18 -0500 Subject: Disable nick and channel colors with hash bound 0 --- chat.h | 1 + 1 file changed, 1 insertion(+) (limited to 'chat.h') 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) { -- cgit 1.4.1