1
0
Fork 0
forked from External/ergo

factor out confirmation codes into utils, change their format

This commit is contained in:
Shivaram Lingamneni 2020-02-22 22:32:19 -05:00
parent 490b3722bd
commit 85a536977c
5 changed files with 63 additions and 15 deletions

View file

@ -732,7 +732,7 @@ func nsUnregisterHandler(server *Server, client *Client, command string, params
return
}
expectedCode := unregisterConfirmationCode(account.Name, account.RegisteredAt)
expectedCode := utils.ConfirmationCode(account.Name, account.RegisteredAt)
if expectedCode != verificationCode {
nsNotice(rb, ircfmt.Unescape(client.t("$bWarning: unregistering this account will remove its stored privileges.$b")))
nsNotice(rb, fmt.Sprintf(client.t("To confirm account unregistration, type: /NS UNREGISTER %[1]s %[2]s"), cfname, expectedCode))