diff --git a/lib/client.js b/lib/client.js index 4c159cf..7687e08 100644 --- a/lib/client.js +++ b/lib/client.js @@ -322,7 +322,9 @@ export default class Client extends EventTarget { case irc.ERR_SASLABORTED: case irc.ERR_SASLALREADY: this.dispatchEvent(new CustomEvent("error", { detail: "SASL error (" + msg.command + "): " + msg.params[1] })); - this.disconnect(); + if (this.status !== Client.Status.REGISTERED) { + this.disconnect(); + } break; case "PING": this.send({ command: "PONG", params: [msg.params[0]] });