forked from External/ergo
handle old bouncer name for multiclient config
This commit is contained in:
parent
f5ca35ed72
commit
fd90893fa6
1 changed files with 6 additions and 0 deletions
|
|
@ -230,6 +230,7 @@ type AccountConfig struct {
|
|||
SkipServerPassword bool `yaml:"skip-server-password"`
|
||||
NickReservation NickReservationConfig `yaml:"nick-reservation"`
|
||||
Multiclient MulticlientConfig
|
||||
Bouncer *MulticlientConfig // # handle old name for 'multiclient'
|
||||
VHosts VHostConfig
|
||||
}
|
||||
|
||||
|
|
@ -880,6 +881,11 @@ func LoadConfig(filename string) (config *Config, err error) {
|
|||
config.Server.capValues[caps.Multiline] = multilineCapValue
|
||||
}
|
||||
|
||||
// handle legacy name 'bouncer' for 'multiclient' section:
|
||||
if config.Accounts.Bouncer != nil {
|
||||
config.Accounts.Multiclient = *config.Accounts.Bouncer
|
||||
}
|
||||
|
||||
if !config.Accounts.Multiclient.Enabled {
|
||||
config.Accounts.Multiclient.AlwaysOn = PersistentDisabled
|
||||
} else if config.Accounts.Multiclient.AlwaysOn >= PersistentOptOut {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue