From fd90893fa6d6ab2c06f8bb2c714520ccfc5ed59d Mon Sep 17 00:00:00 2001 From: Shivaram Lingamneni Date: Fri, 21 Feb 2020 00:02:23 -0500 Subject: [PATCH] handle old bouncer name for multiclient config --- irc/config.go | 6 ++++++ 1 file changed, 6 insertions(+) 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 {