aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/muc
diff options
context:
space:
mode:
authordaurnimator <quae@daurnimator.com>2014-04-28 16:33:54 -0400
committerdaurnimator <quae@daurnimator.com>2014-04-28 16:33:54 -0400
commitde1d66aad0e12f9985623f051dc88f4ee509121c (patch)
tree0d482c76a5380f0183c6d927ff0a58bb3a46f404 /plugins/muc
parenta1421105a2eabc7b9c19a2ac7a4d4f372c6696cf (diff)
downloadprosody-de1d66aad0e12f9985623f051dc88f4ee509121c.tar.gz
prosody-de1d66aad0e12f9985623f051dc88f4ee509121c.zip
plugins/muc/mod_muc: Use get_option_string instead of get_option and checking
Diffstat (limited to 'plugins/muc')
-rw-r--r--plugins/muc/mod_muc.lua4
1 files changed, 1 insertions, 3 deletions
diff --git a/plugins/muc/mod_muc.lua b/plugins/muc/mod_muc.lua
index 2aa55a37..8a7ae9c7 100644
--- a/plugins/muc/mod_muc.lua
+++ b/plugins/muc/mod_muc.lua
@@ -13,8 +13,6 @@ 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 restrict_room_creation = module:get_option("restrict_room_creation");
if restrict_room_creation then
if restrict_room_creation == true then
@@ -44,7 +42,7 @@ local room_configs = module:open_store("config");
muclib.set_max_history_length(module:get_option_number("max_history_messages"));
module:depends("disco");
-module:add_identity("conference", "text", muc_name);
+module:add_identity("conference", "text", module:get_option_string("name", "Prosody Chatrooms"));
module:add_feature("http://jabber.org/protocol/muc");
module:depends "muc_unique"
module:require "muc/lock";