mirror of
https://github.com/ergochat/ergo.git
synced 2025-12-20 02:00:11 -08:00
fix #1886
Add more clarify in NS INFO and SAREGISTER about unregistered nicknames
This commit is contained in:
parent
03092769e7
commit
b11dc1c84c
4 changed files with 26 additions and 3 deletions
|
|
@ -69,7 +69,7 @@ func registrationErrorToMessage(config *Config, client *Client, err error) (mess
|
|||
}
|
||||
|
||||
switch err {
|
||||
case errAccountAlreadyRegistered, errAccountAlreadyVerified, errAccountAlreadyUnregistered, errAccountAlreadyLoggedIn, errAccountCreation, errAccountMustHoldNick, errAccountBadPassphrase, errCertfpAlreadyExists, errFeatureDisabled, errAccountBadPassphrase:
|
||||
case errAccountAlreadyRegistered, errAccountAlreadyVerified, errAccountAlreadyUnregistered, errAccountAlreadyLoggedIn, errAccountCreation, errAccountMustHoldNick, errAccountBadPassphrase, errCertfpAlreadyExists, errFeatureDisabled, errAccountBadPassphrase, errNameReserved:
|
||||
message = err.Error()
|
||||
case errLimitExceeded:
|
||||
message = `There have been too many registration attempts recently; try again later`
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue