aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/muc/mod_muc.lua
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2018-06-03 20:54:53 +0200
committerKim Alvefur <zash@zash.se>2018-06-03 20:54:53 +0200
commit4bcc8878b92a71710934bc6cc41616d25bfa22de (patch)
treef7c4e279bd96c6f19392b2c83d0f006710afae50 /plugins/muc/mod_muc.lua
parent57dd7642ff86c6da077c8e9ba32eb910fa6885c7 (diff)
downloadprosody-4bcc8878b92a71710934bc6cc41616d25bfa22de.tar.gz
prosody-4bcc8878b92a71710934bc6cc41616d25bfa22de.zip
MUC: Fix Ooo (thanks pep.)
What time is it?
Diffstat (limited to 'plugins/muc/mod_muc.lua')
-rw-r--r--plugins/muc/mod_muc.lua12
1 files changed, 6 insertions, 6 deletions
diff --git a/plugins/muc/mod_muc.lua b/plugins/muc/mod_muc.lua
index 2c60c94d..f13a6ab3 100644
--- a/plugins/muc/mod_muc.lua
+++ b/plugins/muc/mod_muc.lua
@@ -285,12 +285,12 @@ end);
module:hook("muc-room-pre-create", function (event)
local room = event.room;
- 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()));
- room:set_whois(module:get_option_boolean("muc_rooom_default_public_jids", room:get_whois() == "anyone") and "anyone" or "moderators");
- room:set_changesubject(module:get_option_boolean("muc_rooom_default_change_subject", room:get_changesubject()));
+ 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_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()));
room:set_historylength(module:get_option_number("muc_room_default_history_length", room:get_historylength()));
room:set_language(event.stanza.attr["xml:lang"] or module:get_option_string("muc_room_default_language"));
end, 1);