~emersion/soju

046175f56444833fdcbbf90aca3beb0a92eecb1f — Simon Ser 2 months ago 480d771
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.
1 files changed, 1 insertions(+), 1 deletions(-)

M upstream.go
M upstream.go => upstream.go +1 -1
@@ 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
		})