1
0
Fork 0
forked from External/ergo

Hopefully apply new languages better, esp. during rehash

This commit is contained in:
Daniel Oaks 2018-01-23 21:23:29 +10:00
parent 638b0c03fc
commit c5a6d22192
2 changed files with 8 additions and 0 deletions

View file

@ -1299,6 +1299,13 @@ func (server *Server) applyConfig(config *Config, initial bool) error {
CapValues.Set(caps.Languages, newLanguageValue)
}
lm := NewLanguageManager(config.Languages.Default, config.Languages.Data)
server.logger.Debug("rehash", "Regenerating HELP indexes for new languages")
GenerateHelpIndices(lm)
server.languages = lm
// SASL
if config.Accounts.AuthenticationEnabled && !server.accountAuthenticationEnabled {
// enabling SASL