changeset 5587:dd4df71166ea

mod_muc_members_json: Set imported hats to active by default
author Matthew Wild <mwild1@gmail.com>
date Fri, 07 Jul 2023 02:02:09 +0100 (17 months ago)
parents 30b9f78b5058
children 59acf7f540c1
files mod_muc_members_json/mod_muc_members_json.lua
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/mod_muc_members_json/mod_muc_members_json.lua	Fri Jul 07 01:25:44 2023 +0100
+++ b/mod_muc_members_json/mod_muc_members_json.lua	Fri Jul 07 02:02:09 2023 +0100
@@ -36,6 +36,7 @@
 	if muc_config.member_hat then
 		hats[muc_config.member_hat.id] = {
 			title = muc_config.member_hat.title;
+			active = true;
 		};
 	end
 	if muc_config.team_hats and member_info.roles then
@@ -44,6 +45,7 @@
 			if hat then
 				hats[hat.id] = {
 					title = hat.title;
+					active = true;
 				};
 			end
 		end