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)
|
||||
}
|
||||
} 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",
|
||||
|
Loading…
Reference in New Issue
Block a user