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:
parent
480d771a67
commit
046175f564
@ -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
|
||||
})
|
||||
|
Loading…
Reference in New Issue
Block a user