MUC: Added 'name' config option, for specifying the component's name in disco responses.

Wed, 21 Oct 2009 02:18:17 +0500

author
Waqas Hussain <waqas20@gmail.com>
date
Wed, 21 Oct 2009 02:18:17 +0500
changeset 2028
4f33100195a0
parent 2026
97b17187b29d
child 2029
d2363643a5c0

MUC: Added 'name' config option, for specifying the component's name in disco responses.

plugins/muc/mod_muc.lua file | annotate | diff | comparison | revisions
--- a/plugins/muc/mod_muc.lua	Wed Oct 21 01:02:26 2009 +0500
+++ b/plugins/muc/mod_muc.lua	Wed Oct 21 02:18:17 2009 +0500
@@ -12,7 +12,8 @@
 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;

mercurial