3
0
mirror of https://github.com/ergochat/ergo.git synced 2026-01-02 08:17:57 +01:00

redact: fix error line for missing channel (#2321)

This commit is contained in:
Shivaram Lingamneni 2025-12-31 14:56:23 -05:00 committed by GitHub
parent d2c9c80cc1
commit f28b10986e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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()