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

git-svn-id: file:///srv/svn/repo/suika/trunk@306 f0ae65fe-ee39-954e-97ec-027ff2717ef4
This commit is contained in:
hubert.hirtz 2020-06-01 16:57:20 +00:00
parent bd6074df78
commit 5de3081265

View File

@ -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(),