mirror of
https://git.sr.ht/~emersion/gamja
synced 2025-04-15 08:24:57 -04: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
1 changed files with 1 additions and 1 deletions
|
@ -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));
|
||||
|
|
Loading…
Add table
Reference in a new issue