diff options
author | Kim Alvefur <zash@zash.se> | 2018-06-03 14:45:04 +0200 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2018-06-03 14:45:04 +0200 |
commit | 57dd7642ff86c6da077c8e9ba32eb910fa6885c7 (patch) | |
tree | 8435c85ffffa4c19af4e238cbc8478c9a6d1236f /plugins/muc/mod_muc.lua | |
parent | 9e955eb3c37212d403a9a6e97fcb91f30fc9b6b1 (diff) | |
download | prosody-57dd7642ff86c6da077c8e9ba32eb910fa6885c7.tar.gz prosody-57dd7642ff86c6da077c8e9ba32eb910fa6885c7.zip |
MUC: Make rooms hidden (non-public) by default for improved privacy
Thanks to jonasw for highlighting this with the MUC crawler.
Diffstat (limited to 'plugins/muc/mod_muc.lua')
-rw-r--r-- | plugins/muc/mod_muc.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/muc/mod_muc.lua b/plugins/muc/mod_muc.lua index 675bd9d5..2c60c94d 100644 --- a/plugins/muc/mod_muc.lua +++ b/plugins/muc/mod_muc.lua @@ -285,7 +285,7 @@ end); module:hook("muc-room-pre-create", function (event) local room = event.room; - room:set_public(module:get_option_boolean("muc_rooom_default_public", room:get_public())); + room:set_public(module:get_option_boolean("muc_rooom_default_public", false)); room:set_persistent(module:get_option_boolean("muc_rooom_default_persistent", room:get_persistent())); room:set_members_only(module:get_option_boolean("muc_rooom_default_members_only", room:get_members_only())); room:set_moderated(module:get_option_boolean("muc_rooom_default_moderated", room:get_moderated())); |