From 2c0f2a80e9c10738541e1f26ebef0b8c73b6a6b3 Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Tue, 13 Aug 2024 00:29:00 +0200 Subject: [PATCH] lib/irc: remove stray hardcoded constant --- lib/irc.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/irc.js b/lib/irc.js index fe85f0c..dafa99b 100644 --- a/lib/irc.js +++ b/lib/irc.js @@ -954,7 +954,7 @@ export function generateAuthenticateMessages(payload) { // last chunk is exactly 400 bytes long let msgs = []; for (let i = 0; i <= encoded.length; i += maxSASLLength) { - let chunk = encoded.substring(i, i + 400); + let chunk = encoded.substring(i, i + maxSASLLength); msgs.push({ command: "AUTHENTICATE", params: [chunk || "+"] }); }