From 448955c915272f1297eadfee713497599e09d3e9 Mon Sep 17 00:00:00 2001 From: Harvey Tindall Date: Sun, 4 Aug 2024 15:40:50 +0100 Subject: [PATCH] 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. --- housekeeping-d.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/housekeeping-d.go b/housekeeping-d.go index 5d60e79..9538b7e 100644 --- a/housekeeping-d.go +++ b/housekeeping-d.go @@ -131,7 +131,7 @@ func newHousekeepingDaemon(interval time.Duration, app *appContext) *GenericDaem d.Name("Housekeeping daemon") 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) 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)