mirror of
https://git.sr.ht/~emersion/gamja
synced 2024-12-11 00:31:26 -05:00
lib/client: don't disconnect on SASL error if registered
This will let users try multiple auth attempts when we'll implement post-registration auth.
This commit is contained in:
parent
25dd6aabf6
commit
86b08296a0
1 changed files with 3 additions and 1 deletions
|
@ -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]] });
|
||||
|
|
Loading…
Reference in a new issue