mirror of
https://github.com/ergochat/ergo.git
synced 2026-01-26 21:39:21 -08:00
remove spurious error logline
This commit is contained in:
parent
1f4807ec0a
commit
c99c1205d3
1 changed files with 2 additions and 1 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue