Prune detached channels from CHATHISTORY TARGETS
This commit is contained in:
parent
18439f0de5
commit
bd41e3bd2b
@ -2115,6 +2115,10 @@ func (dc *downstreamConn) handleMessageRegistered(msg *irc.Message) error {
|
|||||||
})
|
})
|
||||||
|
|
||||||
for _, target := range targets {
|
for _, target := range targets {
|
||||||
|
if ch := uc.network.channels.Value(target.Name); ch != nil && ch.Detached {
|
||||||
|
continue
|
||||||
|
}
|
||||||
|
|
||||||
dc.SendMessage(&irc.Message{
|
dc.SendMessage(&irc.Message{
|
||||||
Tags: irc.Tags{"batch": irc.TagValue(batchRef)},
|
Tags: irc.Tags{"batch": irc.TagValue(batchRef)},
|
||||||
Prefix: dc.srv.prefix(),
|
Prefix: dc.srv.prefix(),
|
||||||
|
Loading…
Reference in New Issue
Block a user