summary refs log tree commit diff
path: root/chat.h
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2020-02-10 05:50:28 -0500
committerJune McEnroe <june@causal.agency>2020-02-10 05:50:28 -0500
commit0d93e66a68ded28440e20cd7012b4e8b0c705fc6 (patch)
tree110b83877027e09361e2d361e94a57ead6524fca /chat.h
parentHash to colors in the range 2-75 (diff)
downloadcatgirl-0d93e66a68ded28440e20cd7012b4e8b0c705fc6.tar.gz
catgirl-0d93e66a68ded28440e20cd7012b4e8b0c705fc6.zip
Add -H
Diffstat (limited to '')
-rw-r--r--chat.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/chat.h b/chat.h
index e7bb9cc..16cc683 100644
--- a/chat.h
+++ b/chat.h
@@ -190,9 +190,10 @@ int getopt_config(
 	const char *optstring, const struct option *longopts, int *longindex
 );
 
+extern uint32_t hashInit;
 static inline enum Color hash(const char *str) {
 	if (*str == '~') str++;
-	uint32_t hash = 0;
+	uint32_t hash = hashInit;
 	for (; *str; ++str) {
 		hash = (hash << 5) | (hash >> 27);
 		hash ^= *str;
7-26Add htoprcJune McEnroe 2016-07-24Add may and refactor ssh configJune McEnroe 2016-07-18Disable cursorlineJune McEnroe 2016-07-18Use hard constrast gruvbox darkJune McEnroe 2016-07-15Remove vim configurationJune McEnroe 2016-07-15Add readline to README configurations listJune McEnroe 2016-07-15Add vendor script to READMEJune McEnroe 2016-07-15Pull latest pathogen and gruvboxJune McEnroe