~emersion/soju-dev

Directly return messages to user v1 APPLIED

Philip Kaludercic: 1
 Directly return messages to user

 1 files changed, 5 insertions(+), 0 deletions(-)
Export patchset (mbox)
How do I use this?

Copy & paste the following snippet into your terminal to import this patchset into git:

curl -s https://lists.sr.ht/~emersion/soju-dev/patches/22914/mbox | git am -3
Learn more about email & git
View this thread in the archives

[PATCH] Directly return messages to user Export this patch

From: Philip K <philipk@posteo.net>

---
 downstream.go | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/downstream.go b/downstream.go
index a4f2da8..3f8cf5a 100644
--- a/downstream.go
+++ b/downstream.go
@@ -1673,6 +1673,11 @@ func (dc *downstreamConn) handleMessageRegistered(msg *irc.Message) error {
		tags := copyClientTags(msg.Tags)

		for _, name := range strings.Split(targetsStr, ",") {
			if uc.network == nil && casemapASCII(name) == dc.nickCM {
				dc.SendMessage(msg)
				continue
			}

			if casemapASCII(name) == serviceNickCM {
				if dc.caps["echo-message"] {
					echoTags := tags.Copy()
-- 
2.30.2