Prune detached channels from CHATHISTORY TARGETS

This commit is contained in:
Simon Ser 2021-06-04 11:27:59 +02:00
parent 18439f0de5
commit bd41e3bd2b
1 changed files with 4 additions and 0 deletions

View File

@ -2115,6 +2115,10 @@ func (dc *downstreamConn) handleMessageRegistered(msg *irc.Message) error {
})
for _, target := range targets {
if ch := uc.network.channels.Value(target.Name); ch != nil && ch.Detached {
continue
}
dc.SendMessage(&irc.Message{
Tags: irc.Tags{"batch": irc.TagValue(batchRef)},
Prefix: dc.srv.prefix(),