mirror of
https://github.com/jeremyd/ergo.git
synced 2026-08-14 17:24:49 -07:00
Fix inconsistent behavior when history.enabled is set but history.chathistory-maxmessages is not
This commit is contained in:
committed by
GitHub
parent
aef5d77b3b
commit
fdd261a1e6
@@ -908,6 +908,9 @@ func (server *Server) applyConfig(config *Config) (err error) {
|
||||
if config.Accounts.RequireSasl.Enabled && config.Accounts.Registration.Enabled {
|
||||
server.logger.Warning("server", "Warning: although require-sasl is enabled, users can still register accounts. If your server is not intended to be public, you must set accounts.registration.enabled to false.")
|
||||
}
|
||||
if config.History.Enabled && config.History.ChathistoryMax == 0 {
|
||||
server.logger.Warning("server", "Warning: for history to work correctly, you must set history.chathistory-maxmessages (see default.yaml for a recommendation).")
|
||||
}
|
||||
|
||||
return err
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user