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:
parent
48960a2992
commit
a24cc5c969
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user