redact: fix error line for missing channel

This commit is contained in:
Shivaram Lingamneni 2025-12-31 09:52:37 +00:00
parent d2c9c80cc1
commit 71cfd2b892

View file

@ -2813,7 +2813,7 @@ func redactHandler(server *Server, client *Client, msg ircmsg.Message, rb *Respo
if target[0] == '#' {
channel := server.channels.Get(target)
if channel == nil {
rb.Add(nil, server.name, ERR_NOSUCHCHANNEL, client.Nick(), utils.SafeErrorParam(target), client.t("No such channel"))
rb.Add(nil, server.name, "FAIL", "REDACT", "INVALID_TARGET", utils.SafeErrorParam(target), client.t("No such channel"))
return false
}
members = channel.Members()