Diff

mod_muc_members_json/mod_muc_members_json.lua @ 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
parent 5586:30b9f78b5058
child 5680:80abda15a1e9
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