From 2b1c0100bfcb1ae9b193894fa553ae181cad5809 Mon Sep 17 00:00:00 2001 From: Grzesiek11 Date: Fri, 2 Aug 2024 13:54:19 +0200 Subject: [PATCH] Correct the buffer size --- src/plugins/ircColors/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/ircColors/index.ts b/src/plugins/ircColors/index.ts index 530890c2c..831423fdc 100644 --- a/src/plugins/ircColors/index.ts +++ b/src/plugins/ircColors/index.ts @@ -36,7 +36,7 @@ function hash(data: ArrayBuffer) { // Calculate a CSS color string based on the user ID function calculateNameColorForUser(id: bigint) { - const idBuffer = new ArrayBuffer(16); + const idBuffer = new ArrayBuffer(8); { const idView = new DataView(idBuffer); idView.setBigUint64(0, id);