From 9177e785c516b3769d5b6185ebfcd62c9cd7d5c4 Mon Sep 17 00:00:00 2001 From: Shivaram Lingamneni Date: Thu, 28 May 2020 01:18:19 -0400 Subject: [PATCH] add a config sanity check --- irc/config.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/irc/config.go b/irc/config.go index 277413e1..73888eb5 100644 --- a/irc/config.go +++ b/irc/config.go @@ -927,6 +927,10 @@ func LoadConfig(filename string) (config *Config, err error) { config.Accounts.Multiclient.AllowedByDefault = true } + if config.Accounts.NickReservation.ForceNickEqualsAccount && !config.Accounts.Multiclient.Enabled { + return nil, errors.New("force-nick-equals-account requires enabling multiclient as well") + } + // handle guest format, including the legacy key rename-prefix if config.Accounts.NickReservation.GuestFormat == "" { renamePrefix := config.Accounts.NickReservation.RenamePrefix