Remove unnecessary downstream cap checks

downstreamConn.SendMessage already performs this cap checking.
This commit is contained in:
Simon Ser 2021-10-18 09:20:11 +02:00
parent 1507e88b36
commit 4be6c4b19c

View File

@ -1261,9 +1261,7 @@ func (dc *downstreamConn) sendTargetBacklog(net *network, target, msgID string)
dc.relayDetachedMessage(net, msg)
}
} else {
if dc.caps["batch"] {
msg.Tags["batch"] = irc.TagValue(batchRef)
}
msg.Tags["batch"] = batchRef
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{
Prefix: dc.prefix(),
Command: "SETNAME",