aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2016-03-11 13:34:32 +0100
committerKim Alvefur <zash@zash.se>2016-03-11 13:34:32 +0100
commit79a36fbfcde1f2fa214551c9e5d879f43a4ef7ca (patch)
tree4277bb8a3c4287d75aa7acc8648086363714a935 /plugins
parenta574e5c9179d4234234e422d4ee82a67b5266dcc (diff)
downloadprosody-79a36fbfcde1f2fa214551c9e5d879f43a4ef7ca.tar.gz
prosody-79a36fbfcde1f2fa214551c9e5d879f43a4ef7ca.zip
MUC: Use type-specific config API for the 'name' option
Diffstat (limited to 'plugins')
-rw-r--r--plugins/muc/mod_muc.lua3
1 files changed, 1 insertions, 2 deletions
diff --git a/plugins/muc/mod_muc.lua b/plugins/muc/mod_muc.lua
index 69351504..ee90d552 100644
--- a/plugins/muc/mod_muc.lua
+++ b/plugins/muc/mod_muc.lua
@@ -13,8 +13,7 @@ if module:get_host_type() ~= "component" then
end
local muc_host = module:get_host();
-local muc_name = module:get_option("name");
-if type(muc_name) ~= "string" then muc_name = "Prosody Chatrooms"; end
+local muc_name = module:get_option_string("name", "Prosody Chatrooms");
local restrict_room_creation = module:get_option("restrict_room_creation");
if restrict_room_creation then
if restrict_room_creation == true then