mirror of
https://codeberg.org/emersion/gamja.git
synced 2024-11-24 08:18:00 -05: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…
Reference in a new issue