aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2018-07-06 15:58:11 +0100
committerMatthew Wild <mwild1@gmail.com>2018-07-06 15:58:11 +0100
commit3154d7958abee227b8c0c68b28634dc3aa0c0248 (patch)
treedac6307bf1acc1b18a840e92fa31cfc056fc419f /plugins
parent49677384f67b36e3a302b86151218ee10552cdaa (diff)
downloadprosody-3154d7958abee227b8c0c68b28634dc3aa0c0248.tar.gz
prosody-3154d7958abee227b8c0c68b28634dc3aa0c0248.zip
mod_muc: Add support for muc_room_default_allow_member_invites
Diffstat (limited to 'plugins')
-rw-r--r--plugins/muc/mod_muc.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/plugins/muc/mod_muc.lua b/plugins/muc/mod_muc.lua
index d2a5f8de..a260823d 100644
--- a/plugins/muc/mod_muc.lua
+++ b/plugins/muc/mod_muc.lua
@@ -293,6 +293,7 @@ module:hook("muc-room-pre-create", function (event)
room:set_public(module:get_option_boolean("muc_room_default_public", false));
room:set_persistent(module:get_option_boolean("muc_room_default_persistent", room:get_persistent()));
room:set_members_only(module:get_option_boolean("muc_room_default_members_only", room:get_members_only()));
+ room:set_allow_member_invites(module:get_option_boolean("muc_room_default_allow_member_invites", room:get_allow_member_invites()));
room:set_moderated(module:get_option_boolean("muc_room_default_moderated", room:get_moderated()));
room:set_whois(module:get_option_boolean("muc_room_default_public_jids", room:get_whois() == "anyone") and "anyone" or "moderators");
room:set_changesubject(module:get_option_boolean("muc_room_default_change_subject", room:get_changesubject()));