diff options
author | Kim Alvefur <zash@zash.se> | 2023-07-18 12:32:41 +0200 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2023-07-18 12:32:41 +0200 |
commit | f0a2a89d6d080fd1904627e98b5db78aaa37bd39 (patch) | |
tree | a67ce399e442281433026103fa18d63508f3cb3c | |
parent | 7b32c69b433f22b101e9bd958a60faf119e2a9e9 (diff) | |
download | prosody-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.lua | 3 |
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) |