Prune detached channels from CHATHISTORY TARGETS

git-svn-id: file:///srv/svn/repo/suika/trunk@550 f0ae65fe-ee39-954e-97ec-027ff2717ef4
This commit is contained in:
contact 2021-06-04 09:27:59 +00:00
parent 522becbe30
commit f8859b0d8a

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(),