downstream: simplify NICK handling when disconnected
This commit is contained in:
parent
dc0a847240
commit
b1b4541a53
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user