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.
This commit is contained in:
Simon Ser 2020-08-28 13:35:55 +02:00
parent 480d771a67
commit 046175f564
No known key found for this signature in database
GPG Key ID: 0FDE7BE0E88F5E48
1 changed files with 1 additions and 1 deletions

View File

@ -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
})