upstream: drop unnecessary network nil check
Remnant from multi-upstream.
This commit is contained in:
parent
ce38d16454
commit
9b31dbfb24
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user