aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2023-07-18 12:32:41 +0200
committerKim Alvefur <zash@zash.se>2023-07-18 12:32:41 +0200
commitf0a2a89d6d080fd1904627e98b5db78aaa37bd39 (patch)
treea67ce399e442281433026103fa18d63508f3cb3c
parent7b32c69b433f22b101e9bd958a60faf119e2a9e9 (diff)
downloadprosody-f0a2a89d6d080fd1904627e98b5db78aaa37bd39.tar.gz
prosody-f0a2a89d6d080fd1904627e98b5db78aaa37bd39.zip
mod_muc: Use enum option method for 'muc_room_default_presence_broadcast'
-rw-r--r--plugins/muc/mod_muc.lua3
1 files changed, 2 insertions, 1 deletions
diff --git a/plugins/muc/mod_muc.lua b/plugins/muc/mod_muc.lua
index 88a2be54..621281d6 100644
--- a/plugins/muc/mod_muc.lua
+++ b/plugins/muc/mod_muc.lua
@@ -290,7 +290,8 @@ local function set_room_defaults(room, lang)
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("muc_room_default_presence_broadcast", room:get_presence_broadcast()));
+ room:set_presence_broadcast(module:get_option_enum("muc_room_default_presence_broadcast", room:get_presence_broadcast(), "visitor", "participant",
+ "moderator"));
end
function create_room(room_jid, config)