diff options
author | Ferass El Hafidi <fun@andrewyu.org> | 2024-03-24 10:06:00 +0000 |
---|---|---|
committer | Ferass El Hafidi <fun@andrewyu.org> | 2024-03-24 10:06:00 +0000 |
commit | ae155f8f28028d2fa167155834ead385781ee0fb (patch) | |
tree | ec3a00a78237124716c7e83e0fd66ae5282113b7 | |
parent | 6d53ed0a8786da36eacd44927c1897154984e92d (diff) | |
download | gamja-ae155f8f28028d2fa167155834ead385781ee0fb.tar.gz gamja-ae155f8f28028d2fa167155834ead385781ee0fb.zip |
lib/client: add delay before AUTHENTICATE <base64> and CAP END
This hack fixes SASL login on InspIRCd.
-rw-r--r-- | lib/client.js | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/lib/client.js b/lib/client.js index aa83807..ab53736 100644 --- a/lib/client.js +++ b/lib/client.js @@ -496,7 +496,9 @@ export default class Client extends EventTarget { throw new IRCError(msg); } }); - this.send(initialResp); + setTimeout(() => { + this.send(initialResp); + }, 5000); return promise; } @@ -683,7 +685,9 @@ export default class Client extends EventTarget { this.send({ command: "BOUNCER", params: ["BIND", this.params.bouncerNetwork] }); } - this.send({ command: "CAP", params: ["END"] }); + setTimeout(() => { + this.send({ command: "CAP", params: ["END"] }) + }, 8000); } break; case "NEW": |