1
0
mirror of https://github.com/hrfee/jfa-go.git synced 2024-12-22 09:00:10 +00:00

discord: ensure discord housekeeping enable for previous feature

was only enabled when "require unique" was set, now also is if the new
"disable_enable_role" is set.
This commit is contained in:
Harvey Tindall 2024-08-04 15:40:50 +01:00
parent ffd46ff190
commit 448955c915
Signed by: hrfee
GPG Key ID: BBC65952848FB1A2

View File

@ -131,7 +131,7 @@ func newHousekeepingDaemon(interval time.Duration, app *appContext) *GenericDaem
d.Name("Housekeeping daemon") d.Name("Housekeeping daemon")
clearEmail := app.config.Section("email").Key("require_unique").MustBool(false) clearEmail := app.config.Section("email").Key("require_unique").MustBool(false)
clearDiscord := app.config.Section("discord").Key("require_unique").MustBool(false) clearDiscord := app.config.Section("discord").Key("require_unique").MustBool(false) || app.config.Section("discord").Key("disable_enable_role").MustBool(false)
clearTelegram := app.config.Section("telegram").Key("require_unique").MustBool(false) clearTelegram := app.config.Section("telegram").Key("require_unique").MustBool(false)
clearMatrix := app.config.Section("matrix").Key("require_unique").MustBool(false) clearMatrix := app.config.Section("matrix").Key("require_unique").MustBool(false)
clearPWR := app.config.Section("captcha").Key("enabled").MustBool(false) && !app.config.Section("captcha").Key("recaptcha").MustBool(false) clearPWR := app.config.Section("captcha").Key("enabled").MustBool(false) && !app.config.Section("captcha").Key("recaptcha").MustBool(false)