~emersion/soju-dev

This thread contains a patchset. You're looking at the original emails, but you may wish to use the patch review UI. Review patch
1

[PATCH] Directly return messages to user

Details
Message ID
<20210524104516.213903-1-philipk@posteo.net>
DKIM signature
pass
Download raw message
Patch: +5 -0
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
Details
Message ID
<iXuCRO2K80PjUklvVZp2DdV9GWG_UYUlzixvEbDIFUGR5zonSueJPBrvIC2Nu4wmdTlQ6qqCKymPejWGNJuwKxzV848GII05vm01nsqdj6M=@emersion.fr>
In-Reply-To
<20210524104516.213903-1-philipk@posteo.net> (view parent)
DKIM signature
pass
Download raw message
On Monday, May 24th, 2021 at 12:45 PM, Philip Kaludercic <philipk@posteo.net> wrote:

> +			if uc.network == nil && casemapASCII(name) == dc.nickCM {

This triggers this build error:

    ./downstream.go:1677:7: undefined: uc

I fixed it up to read `dc` instead.

Pushed, thanks for your contribution!
Reply to thread Export thread (mbox)