~emersion/soju-dev

Don't directly reply to network-specific NICK v1 APPLIED

Hubert Hirtz: 1
 Don't directly reply to network-specific NICK

 1 files changed, 1 insertions(+), 1 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/22420/mbox | git am -3
Learn more about email & git
View this thread in the archives

[PATCH] Don't directly reply to network-specific NICK Export this patch

The NICK must only apply to the specific network, not to the downstream
connection.
---

Maybe there should be some sort of reporting from BouncerServ when
upstream replies back with a NICK, such as "Your nickname on network foo
has changed to bar"?
 downstream.go | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/downstream.go b/downstream.go
index 1a38c16..3eed62f 100644
--- a/downstream.go
+++ b/downstream.go
@@ -1209,7 +1209,7 @@ func (dc *downstreamConn) handleMessageRegistered(msg *irc.Message) error {
			})
		})

		if dc.upstream() == nil && dc.nick != nick {
		if dc.upstream() == nil && upstream == nil && dc.nick != nick {
			dc.SendMessage(&irc.Message{
				Prefix:  dc.prefix(),
				Command: "NICK",
-- 
2.31.1