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:
parent
d2c9c80cc1
commit
f28b10986e
@ -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()
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user