From ad95597ac2378d4e6d6bb09a95ed8cf1ee17e9ec Mon Sep 17 00:00:00 2001 From: Waqas Hussain Date: Wed, 21 Oct 2009 02:18:17 +0500 Subject: MUC: Added 'name' config option, for specifying the component's name in disco responses. --- plugins/muc/mod_muc.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; -- cgit v1.2.3