This commit is contained in:
Shivaram Lingamneni 2020-07-06 03:54:51 -04:00
parent 7d596add87
commit 39269a903b
1 changed files with 8 additions and 0 deletions

View File

@ -797,6 +797,14 @@ func nsRegisterHandler(server *Server, client *Client, command string, params []
}
}
if passphrase != "" {
cfPassphrase, err := Casefold(passphrase)
if err == nil && cfPassphrase == details.nickCasefolded {
nsNotice(rb, client.t("Usage: REGISTER <passphrase> [email]")) // #1179
return
}
}
if !nsLoginThrottleCheck(client, rb) {
return
}