~emersion/public-inbox

soju: Send the full user mask in RPL_LOGGEDIN v2 APPLIED

Hubert Hirtz: 1
 Send the full user mask in RPL_LOGGEDIN

 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/public-inbox/patches/10869/mbox | git am -3
Learn more about email & git
View this thread in the archives

[PATCH soju v2] Send the full user mask in RPL_LOGGEDIN Export this patch

As per the spec at https://ircv3.net/specs/extensions/sasl-3.1

:server 900 <nick> <nick>!<ident>@<host> <account> :Now logged in
---
 downstream.go | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/downstream.go b/downstream.go
index d80ced5..6ea160c 100644
--- a/downstream.go
+++ b/downstream.go
@@ -416,7 +416,7 @@ func (dc *downstreamConn) handleMessageUnregistered(msg *irc.Message) error {
			dc.SendMessage(&irc.Message{
				Prefix:  dc.srv.prefix(),
				Command: irc.RPL_LOGGEDIN,
				Params:  []string{dc.nick, dc.nick, dc.user.Username, "You are now logged in"},
				Params:  []string{dc.nick, dc.prefix().String(), dc.user.Username, "You are now logged in"},
			})
			dc.SendMessage(&irc.Message{
				Prefix:  dc.srv.prefix(),
-- 
2.26.2
Pushed, thanks!