diff options
author | June McEnroe <june@causal.agency> | 2021-03-08 10:47:18 -0500 |
---|---|---|
committer | June McEnroe <june@causal.agency> | 2021-03-08 10:47:18 -0500 |
commit | 6435dfdda5c50b0244260d881210538c81d43fa0 (patch) | |
tree | e86f4c0a2c54a1a11a4f7bd78f1a294e6cb95a25 /chat.h | |
parent | Add bindings for C-Left and C-Right (diff) | |
download | catgirl-6435dfdda5c50b0244260d881210538c81d43fa0.tar.gz catgirl-6435dfdda5c50b0244260d881210538c81d43fa0.zip |
Disable nick and channel colors with hash bound 0
Diffstat (limited to '')
-rw-r--r-- | chat.h | 1 |
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) { |