diff --git a/irc/server.go b/irc/server.go index f920e629..0c285a6f 100644 --- a/irc/server.go +++ b/irc/server.go @@ -794,7 +794,7 @@ func (server *Server) applyConfig(config *Config, initial bool) error { // SASL oldAccountConfig := server.AccountConfig() - authPreviouslyEnabled := oldAccountConfig != nil && !oldAccountConfig.AuthenticationEnabled + authPreviouslyEnabled := oldAccountConfig != nil && oldAccountConfig.AuthenticationEnabled if config.Accounts.AuthenticationEnabled && !authPreviouslyEnabled { // enabling SASL SupportedCapabilities.Enable(caps.SASL)