aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/muc/mod_muc.lua
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
commitc2b74c312945d2afbaaf75a1ba6e24dc4bb0fe02 (patch)
tree0d482c76a5380f0183c6d927ff0a58bb3a46f404 /plugins/muc/mod_muc.lua
parent002467dc48dba878613d7aa9872217de0812a149 (diff)
downloadprosody-c2b74c312945d2afbaaf75a1ba6e24dc4bb0fe02.tar.gz
prosody-c2b74c312945d2afbaaf75a1ba6e24dc4bb0fe02.zip
plugins/muc/mod_muc: Use get_option_string instead of get_option and checking
Diffstat (limited to 'plugins/muc/mod_muc.lua')
-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";