Browse Source

sasl: Always send a 906 in response to AUTHENTICATE *

tags/v0.9.0
Daniel Oaks 7 years ago
parent
commit
c0fbc7908d
1 changed files with 1 additions and 5 deletions
  1. 1
    5
      irc/accounts.go

+ 1
- 5
irc/accounts.go View File

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 = ""

Loading…
Cancel
Save