Call ApplyUserModeChanges for default user modes.

This ensures that counts like the number of invisible users are updated
correctly.
This commit is contained in:
Alex Jaspersen 2020-05-11 05:41:40 +00:00
parent 93f1e5b5b8
commit d5cec62df3
4 changed files with 24 additions and 31 deletions

View file

@ -254,7 +254,7 @@ type AccountConfig struct {
exemptedNets []net.IPNet
} `yaml:"require-sasl"`
DefaultUserModes *string `yaml:"default-user-modes"`
defaultUserModes modes.Modes
defaultUserModes modes.ModeChanges
LDAP ldap.ServerConfig
LoginThrottling ThrottleConfig `yaml:"login-throttling"`
SkipServerPassword bool `yaml:"skip-server-password"`