瀏覽代碼

sasl: Always send a 906 in response to AUTHENTICATE *

tags/v0.9.0
Daniel Oaks 7 年之前
父節點
當前提交
c0fbc7908d
共有 1 個文件被更改,包括 1 次插入5 次删除
  1. 1
    5
      irc/accounts.go

+ 1
- 5
irc/accounts.go 查看文件

@@ -90,11 +90,7 @@ func loadAccount(server *Server, tx *buntdb.Tx, accountKey string) *ClientAccoun
90 90
 func authenticateHandler(server *Server, client *Client, msg ircmsg.IrcMessage) bool {
91 91
 	// sasl abort
92 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 94
 		client.saslInProgress = false
99 95
 		client.saslMechanism = ""
100 96
 		client.saslValue = ""

Loading…
取消
儲存