From af5e17705a0a8e54415aa7425cc6e374785bebb9 Mon Sep 17 00:00:00 2001 From: Tom Smeding Date: Sun, 28 Jun 2026 17:29:03 +0100 Subject: Fix nickhash computation in log.js --- pages/log.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'pages') diff --git a/pages/log.js b/pages/log.js index b7fe9e3..fdf6123 100644 --- a/pages/log.js +++ b/pages/log.js @@ -55,7 +55,7 @@ function nickhash(nick) { var h = 0; for (var i = 0; i < nick.length; i++) h ^= (h << 5) + (h >> 2) + nick.charCodeAt(i); - return h; + return h & 0x7fffffff; } function renderNickColors(dark) { -- cgit v1.3.1