mirror of
https://github.com/ergochat/ergo.git
synced 2025-12-20 02:00:11 -08:00
fix #685
This commit is contained in:
parent
9559ea6764
commit
bd45c346dc
3 changed files with 19 additions and 16 deletions
|
|
@ -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"`
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue