MUC: Added 'name' config option, for specifying the component's name in disco responses.
authorWaqas Hussain <waqas20@gmail.com>
Tue, 20 Oct 2009 21:18:17 +0000 (02:18 +0500)
committerWaqas Hussain <waqas20@gmail.com>
Tue, 20 Oct 2009 21:18:17 +0000 (02:18 +0500)
plugins/muc/mod_muc.lua

index 3e6fafb85d217a723262857ea93d66edee894fb1..602de0f4fed1d4da3d2b0fe0041af8d12318bda8 100644 (file)
@@ -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;