mirror of
https://github.com/ergochat/ergo.git
synced 2025-12-20 10:10:08 -08:00
fix #1179
This commit is contained in:
parent
7d596add87
commit
39269a903b
1 changed files with 8 additions and 0 deletions
|
|
@ -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) {
|
if !nsLoginThrottleCheck(client, rb) {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue