Send the full user mask in RPL_LOGGEDIN

As per the spec [1]:

    :server 900 <nick> <nick>!<ident>@<host> <account> :Now logged in

[1]: https://ircv3.net/specs/extensions/sasl-3.1
This commit is contained in:
Hubert Hirtz 2020-06-01 14:41:47 +02:00 committed by Simon Ser
parent c547aa0278
commit c43ce0da29
No known key found for this signature in database
GPG Key ID: 0FDE7BE0E88F5E48

View File

@ -416,7 +416,7 @@ func (dc *downstreamConn) handleMessageUnregistered(msg *irc.Message) error {
dc.SendMessage(&irc.Message{ dc.SendMessage(&irc.Message{
Prefix: dc.srv.prefix(), Prefix: dc.srv.prefix(),
Command: irc.RPL_LOGGEDIN, 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{ dc.SendMessage(&irc.Message{
Prefix: dc.srv.prefix(), Prefix: dc.srv.prefix(),