From 24cf5fac458988c258f91acc9aeb040821933cb0 Mon Sep 17 00:00:00 2001 From: Shivaram Lingamneni Date: Sun, 7 Jan 2024 00:38:10 -0500 Subject: [PATCH] fix #2101 --- CHANGELOG.md | 1 + irc/handlers.go | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 8f7a0961..33b095b3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -14,6 +14,7 @@ Mnay thanks to [@dallemon](https://github.com/dallemon), [@jwheare](https://gith * Fixed a (hopefully rare) crash when persisting always-on client statuses (#2113, #2117, thanks [@Sheikah45](https://github.com/Sheikah45)!) * Fixed not being able to message channels with `/` (or the configured `RELAYMSG` separator) in their names (#2114, thanks [@Mikaela](https://github.com/Mikaela)!) * Verification emails now always include a `Message-ID` header, improving compatibility with Gmail (#2108, #2110) +* Improved human-readable description of `REDACT_FORBIDDEN` (#2101, thanks [@jwheare](https://github.com/jwheare)!) ### Removed diff --git a/irc/handlers.go b/irc/handlers.go index 950b1142..520f26c1 100644 --- a/irc/handlers.go +++ b/irc/handlers.go @@ -2704,7 +2704,7 @@ func redactHandler(server *Server, client *Client, msg ircmsg.Message, rb *Respo if canDelete == canDeleteSelf { accountName = client.AccountName() if accountName == "*" { - rb.Add(nil, server.name, "FAIL", "REDACT", "REDACT_FORBIDDEN", utils.SafeErrorParam(target), utils.SafeErrorParam(targetmsgid), client.t("You are not authorized to delete because you are logged out")) + rb.Add(nil, server.name, "FAIL", "REDACT", "REDACT_FORBIDDEN", utils.SafeErrorParam(target), utils.SafeErrorParam(targetmsgid), client.t("You are not authorized to delete this message")) return false } }