Remove unnecessary downstream cap checks
downstreamConn.SendMessage already performs this cap checking.
This commit is contained in:
parent
1507e88b36
commit
4be6c4b19c
@ -1261,9 +1261,7 @@ func (dc *downstreamConn) sendTargetBacklog(net *network, target, msgID string)
|
|||||||
dc.relayDetachedMessage(net, msg)
|
dc.relayDetachedMessage(net, msg)
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
if dc.caps["batch"] {
|
msg.Tags["batch"] = batchRef
|
||||||
msg.Tags["batch"] = irc.TagValue(batchRef)
|
|
||||||
}
|
|
||||||
dc.SendMessage(dc.marshalMessage(msg, net))
|
dc.SendMessage(dc.marshalMessage(msg, net))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -1456,7 +1454,7 @@ func (dc *downstreamConn) handleMessageRegistered(msg *irc.Message) error {
|
|||||||
}}
|
}}
|
||||||
}
|
}
|
||||||
|
|
||||||
if dc.upstream() == nil && dc.caps["setname"] {
|
if dc.upstream() == nil {
|
||||||
dc.SendMessage(&irc.Message{
|
dc.SendMessage(&irc.Message{
|
||||||
Prefix: dc.prefix(),
|
Prefix: dc.prefix(),
|
||||||
Command: "SETNAME",
|
Command: "SETNAME",
|
||||||
|
Loading…
Reference in New Issue
Block a user