diff options
author | daurnimator <quae@daurnimator.com> | 2014-04-28 16:33:54 -0400 |
---|---|---|
committer | daurnimator <quae@daurnimator.com> | 2014-04-28 16:33:54 -0400 |
commit | c2b74c312945d2afbaaf75a1ba6e24dc4bb0fe02 (patch) | |
tree | 0d482c76a5380f0183c6d927ff0a58bb3a46f404 /plugins/muc | |
parent | 002467dc48dba878613d7aa9872217de0812a149 (diff) | |
download | prosody-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')
-rw-r--r-- | plugins/muc/mod_muc.lua | 4 |
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"; |