Browse Source

fix #2101

tags/v2.13.0-rc1^2
Shivaram Lingamneni 3 months ago
parent
commit
24cf5fac45
2 changed files with 2 additions and 1 deletions
  1. 1
    0
      CHANGELOG.md
  2. 1
    1
      irc/handlers.go

+ 1
- 0
CHANGELOG.md View File

@@ -14,6 +14,7 @@ Mnay thanks to [@dallemon](https://github.com/dallemon), [@jwheare](https://gith
14 14
 * Fixed a (hopefully rare) crash when persisting always-on client statuses (#2113, #2117, thanks [@Sheikah45](https://github.com/Sheikah45)!)
15 15
 * Fixed not being able to message channels with `/` (or the configured `RELAYMSG` separator) in their names (#2114, thanks [@Mikaela](https://github.com/Mikaela)!)
16 16
 * Verification emails now always include a `Message-ID` header, improving compatibility with Gmail (#2108, #2110)
17
+* Improved human-readable description of `REDACT_FORBIDDEN` (#2101, thanks [@jwheare](https://github.com/jwheare)!)
17 18
 
18 19
 ### Removed
19 20
 

+ 1
- 1
irc/handlers.go View File

@@ -2704,7 +2704,7 @@ func redactHandler(server *Server, client *Client, msg ircmsg.Message, rb *Respo
2704 2704
 	if canDelete == canDeleteSelf {
2705 2705
 		accountName = client.AccountName()
2706 2706
 		if accountName == "*" {
2707
-			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"))
2707
+			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"))
2708 2708
 			return false
2709 2709
 		}
2710 2710
 	}

Loading…
Cancel
Save