This commit is contained in:
Shivaram Lingamneni 2020-03-18 06:55:30 -04:00
parent 9559ea6764
commit bd45c346dc
3 changed files with 19 additions and 16 deletions

View file

@ -385,12 +385,6 @@ func (cm *Casemapping) UnmarshalYAML(unmarshal func(interface{}) error) (err err
return nil
}
// ChannelRegistrationConfig controls channel registration.
type ChannelRegistrationConfig struct {
Enabled bool
MaxChannelsPerAccount int `yaml:"max-channels-per-account"`
}
// OperClassConfig defines a specific operator class.
type OperClassConfig struct {
Title string
@ -534,7 +528,11 @@ type Config struct {
defaultModes modes.Modes
MaxChannelsPerClient int `yaml:"max-channels-per-client"`
OpOnlyCreation bool `yaml:"operator-only-creation"`
Registration ChannelRegistrationConfig
Registration struct {
Enabled bool
OperatorOnly bool `yaml:"operator-only"`
MaxChannelsPerAccount int `yaml:"max-channels-per-account"`
}
}
OperClasses map[string]*OperClassConfig `yaml:"oper-classes"`