From b3bc9614f8eca2e7f9c1ef127790232d8ac775b9 Mon Sep 17 00:00:00 2001 From: Philip K Date: Mon, 24 May 2021 10:45:16 +0000 Subject: [PATCH] Directly return self-messages to user in multi-upstream mode --- downstream.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/downstream.go b/downstream.go index cc9bfca..b154b08 100644 --- a/downstream.go +++ b/downstream.go @@ -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()