downstream: simplify NICK handling when disconnected

This commit is contained in:
Simon Ser 2022-07-08 18:14:10 +02:00
parent dc0a847240
commit b1b4541a53
1 changed files with 1 additions and 7 deletions

View File

@ -1836,13 +1836,7 @@ func (dc *downstreamConn) handleMessageRegistered(ctx context.Context, msg *irc.
Params: []string{nick},
})
} else {
dc.SendMessage(&irc.Message{
Prefix: dc.prefix(),
Command: "NICK",
Params: []string{nick},
})
dc.nick = nick
dc.nickCM = casemapASCII(dc.nick)
dc.updateNick()
}
} else {
for _, c := range dc.user.downstreamConns {