Directly return self-messages to user in multi-upstream mode

This commit is contained in:
Philip K 2021-05-24 10:45:16 +00:00 committed by Simon Ser
parent 68463d3e8b
commit b3bc9614f8

View File

@ -1674,6 +1674,11 @@ func (dc *downstreamConn) handleMessageRegistered(msg *irc.Message) error {
tags := copyClientTags(msg.Tags)
for _, name := range strings.Split(targetsStr, ",") {
if dc.network == nil && casemapASCII(name) == dc.nickCM {
dc.SendMessage(msg)
continue
}
if casemapASCII(name) == serviceNickCM {
if dc.caps["echo-message"] {
echoTags := tags.Copy()