upstream: pre-registration NOTICEs come from servers

There's no way another user is aware that we exist before
RPL_WELCOME.
This commit is contained in:
Simon Ser 2022-07-13 09:02:03 +02:00
parent 48960a2992
commit a24cc5c969

View File

@ -502,7 +502,7 @@ func (uc *upstreamConn) handleMessage(ctx context.Context, msg *irc.Message) err
break
}
if uc.network.equalCasemap(msg.Prefix.Name, uc.serverPrefix.Name) || target == "*" || strings.HasPrefix(target, "$") {
if !uc.registered || uc.network.equalCasemap(msg.Prefix.Name, uc.serverPrefix.Name) || target == "*" || strings.HasPrefix(target, "$") {
// This is a server message
uc.produce("", msg, 0)
break