From 1ea7c30744d60077b7bcb33ded66c9a45ada68bb Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Wed, 17 Apr 2024 23:29:54 +0200 Subject: [PATCH] lib/client: fix number of field check in RPL_WHOSPCRPL The first field is the client. --- lib/client.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/client.js b/lib/client.js index 36c1e79..b89419a 100644 --- a/lib/client.js +++ b/lib/client.js @@ -534,7 +534,7 @@ export default class Client extends EventTarget { l.push(this.parseWhoReply(msg)); break; case irc.RPL_WHOSPCRPL: - if (msg.params.length !== fields.length || msg.params[1] !== token) { + if (msg.params.length !== fields.length + 1 || msg.params[1] !== token) { break; } l.push(this.parseWhoReply(msg));