# HG changeset patch # User Kim Alvefur # Date 1689676361 -7200 # Node ID ac44bb7b7064651e4452ef0a8aea080d532cbb9e # Parent 6375f0741f90f8c86105797976ce83d48b8bee07 mod_muc: Use enum option method for 'muc_room_default_presence_broadcast' diff -r 6375f0741f90 -r ac44bb7b7064 plugins/muc/mod_muc.lua --- a/plugins/muc/mod_muc.lua Tue Jul 18 12:32:05 2023 +0200 +++ b/plugins/muc/mod_muc.lua Tue Jul 18 12:32:41 2023 +0200 @@ -290,7 +290,8 @@ 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)