review fix

This commit is contained in:
Shivaram Lingamneni 2019-05-29 05:50:33 -04:00
parent 7c5fa551ac
commit 71cc9a1adf
2 changed files with 2 additions and 2 deletions

View File

@ -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
}

View File

@ -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",