From 046175f56444833fdcbbf90aca3beb0a92eecb1f Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Fri, 28 Aug 2020 13:35:55 +0200 Subject: [PATCH] Don't update history when msgID is empty in appendLog Log files don't record all message types. If the message isn't inserted in the log file, don't update the history cursors for downstream connections. --- upstream.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/upstream.go b/upstream.go index 97b2d03..f76f68e 100644 --- a/upstream.go +++ b/upstream.go @@ -1657,7 +1657,7 @@ func (uc *upstreamConn) appendLog(entity string, msg *irc.Message) { return } - if !detached { + if !detached && msgID != "" { uc.forEachDownstream(func(dc *downstreamConn) { history.clients[dc.clientName] = msgID })