upstream: drop unnecessary network nil check

Remnant from multi-upstream.
This commit is contained in:
Simon Ser 2023-03-01 11:52:42 +01:00
parent ce38d16454
commit 9b31dbfb24

View file

@ -978,9 +978,6 @@ func (uc *upstreamConn) handleMessage(ctx context.Context, msg *irc.Message) err
uc.updateMonitor() uc.updateMonitor()
uc.forEachDownstream(func(dc *downstreamConn) { uc.forEachDownstream(func(dc *downstreamConn) {
if dc.network == nil {
return
}
msgs := xirc.GenerateIsupport(dc.srv.prefix(), dc.nick, downstreamIsupport) msgs := xirc.GenerateIsupport(dc.srv.prefix(), dc.nick, downstreamIsupport)
for _, msg := range msgs { for _, msg := range msgs {
dc.SendMessage(msg) dc.SendMessage(msg)