mirror of
https://github.com/ergochat/ergo.git
synced 2025-12-20 02:00:11 -08:00
add a config sanity check
This commit is contained in:
parent
d48ca682bd
commit
9177e785c5
1 changed files with 4 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue