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},
|
Params: []string{nick},
|
||||||
})
|
})
|
||||||
} else {
|
} else {
|
||||||
dc.SendMessage(&irc.Message{
|
dc.updateNick()
|
||||||
Prefix: dc.prefix(),
|
|
||||||
Command: "NICK",
|
|
||||||
Params: []string{nick},
|
|
||||||
})
|
|
||||||
dc.nick = nick
|
|
||||||
dc.nickCM = casemapASCII(dc.nick)
|
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
for _, c := range dc.user.downstreamConns {
|
for _, c := range dc.user.downstreamConns {
|
||||||
|
Loading…
Reference in New Issue
Block a user