|
|
|
|
90
|
func authenticateHandler(server *Server, client *Client, msg ircmsg.IrcMessage) bool {
|
90
|
func authenticateHandler(server *Server, client *Client, msg ircmsg.IrcMessage) bool {
|
91
|
// sasl abort
|
91
|
// sasl abort
|
92
|
if !server.accountAuthenticationEnabled || len(msg.Params) == 1 && msg.Params[0] == "*" {
|
92
|
if !server.accountAuthenticationEnabled || len(msg.Params) == 1 && msg.Params[0] == "*" {
|
93
|
- if client.saslInProgress {
|
|
|
94
|
- client.Send(nil, server.name, ERR_SASLABORTED, client.nick, "SASL authentication aborted")
|
|
|
95
|
- } else {
|
|
|
96
|
- client.Send(nil, server.name, ERR_SASLFAIL, client.nick, "SASL authentication failed")
|
|
|
97
|
- }
|
|
|
|
|
93
|
+ client.Send(nil, server.name, ERR_SASLABORTED, client.nick, "SASL authentication aborted")
|
98
|
client.saslInProgress = false
|
94
|
client.saslInProgress = false
|
99
|
client.saslMechanism = ""
|
95
|
client.saslMechanism = ""
|
100
|
client.saslValue = ""
|
96
|
client.saslValue = ""
|