~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] Send the downstream host for PRIVMSG echo messages

Details
Message ID
<20211115163838.31208-1-delthas@dille.cc>
DKIM signature
pass
Download raw message
Patch: +3 -3
If a downstream of prefix host `foo` sends a message, the other
downstream of prefix host `bar` should receive an echo PRIVMSG with
prefix host bar.

This fixes a regression where no prefix host was sent at all.
---
 downstream.go | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/downstream.go b/downstream.go
index 8389767..16e8413 100644
--- a/downstream.go
+++ b/downstream.go
@@ -581,13 +581,13 @@ func (dc *downstreamConn) handlePong(token string) {
// messages that may appear in logs are supported, except MODE messages which
// may only appear in single-upstream mode.
func (dc *downstreamConn) marshalMessage(msg *irc.Message, net *network) *irc.Message {
	msg = msg.Copy()
	msg.Prefix = dc.marshalUserPrefix(net, msg.Prefix)

	if dc.network != nil {
		return msg
	}

	msg = msg.Copy()
	msg.Prefix = dc.marshalUserPrefix(net, msg.Prefix)

	switch msg.Command {
	case "PRIVMSG", "NOTICE", "TAGMSG":
		msg.Params[0] = dc.marshalEntity(net, msg.Params[0])
-- 
2.17.1
Details
Message ID
<zyc8QlA6x2SbS6c_LW29atNymCv4S3iV_uS1N2Enr-ZaKaUmyWlGSDuxypVoCiOZQhxxKhg3TVEmNycmbBZx8zYwqCL_3aAmlAXgW2Dw-9A=@emersion.fr>
In-Reply-To
<20211115163838.31208-1-delthas@dille.cc> (view parent)
DKIM signature
pass
Download raw message
Pushed, thanks for the fix!
Reply to thread Export thread (mbox)