# HG changeset patch # User Jonas Schäfer # Date 1612020675 -3600 # Node ID dd3bfe8f182ef55cff40401afef7d0bbc3f8a78a # Parent c7424b96c75e8a62d0886b5517f036a6bec12d91 mod_groups_migration: make default group name configurable diff -r c7424b96c75e -r dd3bfe8f182e mod_groups_migration/mod_groups_migration.lua --- a/mod_groups_migration/mod_groups_migration.lua Sat Jan 30 16:25:12 2021 +0100 +++ b/mod_groups_migration/mod_groups_migration.lua Sat Jan 30 16:31:15 2021 +0100 @@ -3,6 +3,7 @@ local mod_groups = module:depends("groups_internal"); local default_group_id = module:get_option("group_default_id", "default"); +local default_group_name = module:get_option("group_default_name", "default"); local function trigger_migration() if mod_groups.exists(default_group_id) then @@ -12,7 +13,7 @@ module:log("info", "migrating to mod_groups!") local group_id = default_group_id; - local ok, err = mod_groups.create({name="default"}, true, group_id); + local ok, err = mod_groups.create({name=default_group_name}, true, group_id); if not ok then module:log("error", "failed to create group: %s", err) return