diff --git a/irc/config.go b/irc/config.go index 88dc8ae9..9547def0 100644 --- a/irc/config.go +++ b/irc/config.go @@ -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 {