mirror of
https://github.com/ergochat/ergo.git
synced 2024-11-15 00:19:29 +01:00
change FAIL AUTHENTICATE VERIFICATION_REQUIRED to be a NOTE
See discussion on #1852
This commit is contained in:
parent
72959eb1cf
commit
cb757c703d
@ -283,7 +283,7 @@ func sendAuthErrorResponse(client *Client, rb *ResponseBuffer, err error) {
|
|||||||
msg := authErrorToMessage(client.server, err)
|
msg := authErrorToMessage(client.server, err)
|
||||||
rb.Add(nil, client.server.name, ERR_SASLFAIL, client.nick, fmt.Sprintf("%s: %s", client.t("SASL authentication failed"), client.t(msg)))
|
rb.Add(nil, client.server.name, ERR_SASLFAIL, client.nick, fmt.Sprintf("%s: %s", client.t("SASL authentication failed"), client.t(msg)))
|
||||||
if err == errAccountUnverified {
|
if err == errAccountUnverified {
|
||||||
rb.Add(nil, client.server.name, "FAIL", "AUTHENTICATE", "VERIFICATION_REQUIRED", "*", client.t(err.Error()))
|
rb.Add(nil, client.server.name, "NOTE", "AUTHENTICATE", "VERIFICATION_REQUIRED", "*", client.t(err.Error()))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user