aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWaqas Hussain <waqas20@gmail.com>2009-10-21 02:18:17 +0500
committerWaqas Hussain <waqas20@gmail.com>2009-10-21 02:18:17 +0500
commitad95597ac2378d4e6d6bb09a95ed8cf1ee17e9ec (patch)
tree1516d8b631aa59ed1859627f0974727601e07f4a
parent22cd9aadf669884ae58feaf1974c5b03481c17dd (diff)
downloadprosody-ad95597ac2378d4e6d6bb09a95ed8cf1ee17e9ec.tar.gz
prosody-ad95597ac2378d4e6d6bb09a95ed8cf1ee17e9ec.zip
MUC: Added 'name' config option, for specifying the component's name in disco responses.
-rw-r--r--plugins/muc/mod_muc.lua3
1 files changed, 2 insertions, 1 deletions
diff --git a/plugins/muc/mod_muc.lua b/plugins/muc/mod_muc.lua
index 3e6fafb8..602de0f4 100644
--- a/plugins/muc/mod_muc.lua
+++ b/plugins/muc/mod_muc.lua
@@ -12,7 +12,8 @@ if module:get_host_type() ~= "component" then
end
local muc_host = module:get_host();
-local muc_name = "Chatrooms";
+local muc_name = module:get_option("name");
+if type(muc_name) ~= "string" then muc_name = "Prosody Chatrooms"; end
local history_length = 20;
local muc_new_room = module:require "muc".new_room;