diff --git a/irc/handlers.go b/irc/handlers.go index a80c366a..d2d50c34 100644 --- a/irc/handlers.go +++ b/irc/handlers.go @@ -590,7 +590,7 @@ func capHandler(server *Server, client *Client, msg ircmsg.IrcMessage, rb *Respo rb.Add(nil, server.name, "CAP", details.nick, "NAK", capString) return false } else if toAdd.Has(caps.Nope) && !client.registered { - client.Quit(client.t("Requesting the oragono.io/nope CAP is forbidden"), rb.session) + client.Quit(fmt.Sprintf(client.t("Requesting the %s client capability is forbidden"), caps.Nope.Name()), rb.session) return true } diff --git a/languages/example/irc.lang.json b/languages/example/irc.lang.json index b476121f..6d6406e5 100644 --- a/languages/example/irc.lang.json +++ b/languages/example/irc.lang.json @@ -158,7 +158,7 @@ "Remote servers not yet supported": "Remote servers not yet supported", "Removed D-Line for %s": "Removed D-Line for %s", "Removed K-Line for %s": "Removed K-Line for %s", - "Requesting the oragono.io/nope CAP is forbidden": "Requesting the oragono.io/nope CAP is forbidden", + "Requesting the %s client capability is forbidden": "Requesting the %s client capability is forbidden", "Resume may have lost up to %d seconds of history": "Resume may have lost up to %d seconds of history", "SASL authentication aborted": "SASL authentication aborted", "SASL authentication failed": "SASL authentication failed",