changeset 13894:c6010e1322aa 13.0

MUC: Fix #1938 by reverting ac44bb7b7064
author Kim Alvefur <zash@zash.se>
date Thu, 05 Jun 2025 21:13:51 +0200
parents c83fdee8efda
children b003c4c921ff 17b5a10bd9c9
files plugins/muc/mod_muc.lua
diffstat 1 files changed, 1 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/plugins/muc/mod_muc.lua	Mon Jun 02 12:50:57 2025 +0100
+++ b/plugins/muc/mod_muc.lua	Thu Jun 05 21:13:51 2025 +0200
@@ -302,8 +302,7 @@
 	room:set_changesubject(module:get_option_boolean("muc_room_default_change_subject", room:get_changesubject()));
 	room:set_historylength(module:get_option_integer("muc_room_default_history_length", room:get_historylength(), 0));
 	room:set_language(lang or module:get_option_string("muc_room_default_language"));
-	room:set_presence_broadcast(module:get_option_enum("muc_room_default_presence_broadcast", room:get_presence_broadcast(), "visitor", "participant",
-		"moderator"));
+	room:set_presence_broadcast(module:get_option("muc_room_default_presence_broadcast", room:get_presence_broadcast()));
 	room:set_allow_pm(module:get_option_enum("muc_room_default_allow_pm", room:get_allow_pm(), "visitor", "participant", "moderator"));
 	room:set_allow_modpm(module:get_option_boolean("muc_room_default_always_allow_moderator_pms", room:get_allow_modpm()));
 end