From b1b4541a53f8382040e0cf8948b7fe0df248def7 Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Fri, 8 Jul 2022 18:14:10 +0200 Subject: [PATCH] downstream: simplify NICK handling when disconnected --- downstream.go | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/downstream.go b/downstream.go index db29912..f20e33f 100644 --- a/downstream.go +++ b/downstream.go @@ -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 {