3
0
mirror of https://github.com/ergochat/ergo.git synced 2024-11-21 19:39:43 +01:00

Merge pull request #1892 from slingamn/unregister_warning

add a warning about NS UNREGISTER unregistering channels
This commit is contained in:
Shivaram Lingamneni 2022-01-06 16:00:17 -05:00 committed by GitHub
commit 7a6e7f05a1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1085,6 +1085,8 @@ func nsUnregisterHandler(service *ircService, server *Server, client *Client, co
service.Notice(rb, ircfmt.Unescape(client.t("$bWarning: unregistering this account will remove its stored privileges.$b")))
service.Notice(rb, ircfmt.Unescape(client.t("$bNote that an unregistered account name remains reserved and cannot be re-registered.$b")))
service.Notice(rb, ircfmt.Unescape(client.t("$bIf you are having problems with your account, contact an administrator.$b")))
service.Notice(rb, ircfmt.Unescape(client.t("$bUnregistering your account will unregister all channels you founded.$b")))
service.Notice(rb, ircfmt.Unescape(client.t("$bTo prevent this, transfer your channels first with CS TRANSFER.$b")))
}
service.Notice(rb, fmt.Sprintf(client.t("To confirm, run this command: %s"), fmt.Sprintf("/NS %s %s %s", strings.ToUpper(command), accountName, expectedCode)))
return