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