Software /
code /
prosody
Changeset
8869:7277797a4988
MUC: Make rooms hidden (non-public) by default for improved privacy
Thanks to jonasw for highlighting this with the MUC crawler.
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Sun, 03 Jun 2018 14:45:04 +0200 |
parents | 8868:b9e56f46916e |
children | 8870:dd0291aa3393 |
files | plugins/muc/mod_muc.lua |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/plugins/muc/mod_muc.lua Sun Jun 03 14:43:15 2018 +0200 +++ b/plugins/muc/mod_muc.lua Sun Jun 03 14:45:04 2018 +0200 @@ -285,7 +285,7 @@ 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()));