Split some settings into new "messages" section

Most email dependant sections now depend on this. Also renamed more
email things.
This commit is contained in:
Harvey Tindall
2021-05-07 21:53:29 +01:00
parent 51f2f4cc6a
commit ea0293bd4e
21 changed files with 289 additions and 219 deletions
+1 -2
View File
@@ -72,8 +72,7 @@ func (app *appContext) checkUsers() {
termPlural = "Deleting"
}
contact := false
if (emailEnabled && app.config.Section("user_expiry").Key("send_email").MustBool(true)) ||
app.config.Section("telegram").Key("enabled").MustBool(false) {
if messagesEnabled && app.config.Section("user_expiry").Key("send_email").MustBool(true) {
contact = true
}
// Use a map to speed up checking for deleted users later