From bd41e3bd2b343ba63b2195d7100e753dc5e1c2b8 Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Fri, 4 Jun 2021 11:27:59 +0200 Subject: [PATCH] Prune detached channels from CHATHISTORY TARGETS --- downstream.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/downstream.go b/downstream.go index 058b276..950bb5c 100644 --- a/downstream.go +++ b/downstream.go @@ -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(),