From c99c1205d38c0ec351260d302fa8f2f528ff5018 Mon Sep 17 00:00:00 2001 From: Shivaram Lingamneni Date: Wed, 31 Dec 2025 02:04:05 -0500 Subject: [PATCH] remove spurious error logline --- irc/handlers.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/irc/handlers.go b/irc/handlers.go index 6f6c71fa..029fc0c4 100644 --- a/irc/handlers.go +++ b/irc/handlers.go @@ -2866,7 +2866,8 @@ func redactHandler(server *Server, client *Client, msg ircmsg.Message, rb *Respo // now we have to remove it from the buffer of the client who sent the REDACT command err := server.DeleteMessage(client.Nick(), targetmsgid, accountName) - if err != nil { + // ErrNotFound is expected if both clients are using persistent history + if err != nil && err != history.ErrNotFound { client.server.logger.Error("internal", fmt.Sprintf("Private message %s is not deletable by %s from their own buffer's even though we just deleted it from %s's. This is a bug, please report it in details.", targetmsgid, client.Nick(), target), client.Nick()) isOper := client.HasRoleCapabs("history") if isOper {