From 6a185606d49df54469de7efc0515412ddcfceb44 Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Sun, 3 Jun 2018 14:45:04 +0200 Subject: MUC: Make rooms hidden (non-public) by default for improved privacy Thanks to jonasw for highlighting this with the MUC crawler. --- plugins/muc/mod_muc.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'plugins') 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())); -- cgit v1.2.3