Closed AitorATuin closed 3 years ago
NOTE that it adds the irc server buffer to the connection to be able to disconnect the connection with the server without triggering a reconnect. It uses the variable circe-server-inhibit-auto-reconnect-p
from that buffer to avoid the reconnections.
This PR adds support for all the possible events sent during SASL authentication:
It also improves the registration logic in this way:
When using SASL on successful authentication the server will send 900 and
Right now on 900 the
sasl.login
event is always emitted even if we are doing SASL authentication. This PR waits for the 903 when SASL negotiation is ongoing. If SASL is not active thesasl.login
will be emitted when 900 is sent.Right now the
CAP END
command is sent right after theAUTHENTICATION
has been sent without waiting for a response from the server. This PR also delays theCAP END
until we know the status of the SASL authentication (success, failed or aborted).It also adds a new flag
:sasl-strict
that makes the connection with the server to be closed in the SASL authentication failed.