Don't directly reply to network-specific NICK

The NICK must only apply to the specific network, not to the downstream
connection.
This commit is contained in:
Hubert Hirtz 2021-04-30 10:44:35 +02:00 committed by Simon Ser
parent e84fad3eda
commit 9e04b3899b
1 changed files with 1 additions and 1 deletions

View File

@ -1201,7 +1201,7 @@ func (dc *downstreamConn) handleMessageRegistered(msg *irc.Message) error {
})
})
if dc.upstream() == nil && dc.nick != nick {
if dc.upstream() == nil && upstream == nil && dc.nick != nick {
dc.SendMessage(&irc.Message{
Prefix: dc.prefix(),
Command: "NICK",