about summary refs log tree commit diff
path: root/chat.h
diff options
context:
space:
mode:
Diffstat (limited to 'chat.h')
-rw-r--r--chat.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/chat.h b/chat.h
index 369747c..bd69b5e 100644
--- a/chat.h
+++ b/chat.h
@@ -147,8 +147,9 @@ static inline uint32_t _hash(const char *str) {
 	return hash;
 }
 static inline enum Color hash(const char *str) {
-	if (hashBound < Blue) return Default;
-	return Blue + _hash(str) % (hashBound + 1 - Blue);
+	if (!hashBound) return Default;
+	enum Color color = Black + _hash(str) % (hashBound + 1 - Black);
+	return (color == Black ? White : color);
 }
 
 extern struct Network {
@@ -285,6 +286,7 @@ enum Reply {
 	ReplyJoin,
 	ReplyList,
 	ReplyMode,
+	ReplyMOTD,
 	ReplyNames,
 	ReplyNamesAuto,
 	ReplyTopic,