mirror of
https://codeberg.org/emersion/gamja
synced 2025-03-13 07:48:37 +01:00
lib/client: fix number of field check in RPL_WHOSPCRPL
The first field is the client.
This commit is contained in:
parent
87e88cccca
commit
1ea7c30744
@ -534,7 +534,7 @@ export default class Client extends EventTarget {
|
|||||||
l.push(this.parseWhoReply(msg));
|
l.push(this.parseWhoReply(msg));
|
||||||
break;
|
break;
|
||||||
case irc.RPL_WHOSPCRPL:
|
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;
|
break;
|
||||||
}
|
}
|
||||||
l.push(this.parseWhoReply(msg));
|
l.push(this.parseWhoReply(msg));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user