downstream: refuse to enable multi-upstream mode
References: https://todo.sr.ht/~emersion/soju/125
This commit is contained in:
parent
027a89a0b0
commit
1ea3a19403
@ -1411,15 +1411,11 @@ func (dc *downstreamConn) loadNetwork(ctx context.Context) error {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if dc.registration.networkName == "*" {
|
if dc.registration.networkName == "*" {
|
||||||
if !dc.srv.Config().MultiUpstream {
|
|
||||||
return ircError{&irc.Message{
|
return ircError{&irc.Message{
|
||||||
Command: irc.ERR_PASSWDMISMATCH,
|
Command: irc.ERR_PASSWDMISMATCH,
|
||||||
Params: []string{dc.nick, fmt.Sprintf("Multi-upstream mode is disabled on this server")},
|
Params: []string{dc.nick, fmt.Sprintf("Multi-upstream mode is no longer supported")},
|
||||||
}}
|
}}
|
||||||
}
|
}
|
||||||
dc.isMultiUpstream = true
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
|
|
||||||
if dc.registration.networkName == "" {
|
if dc.registration.networkName == "" {
|
||||||
return nil
|
return nil
|
||||||
|
Loading…
Reference in New Issue
Block a user