projects
/
prosody.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5336d95
)
MUC: Added 'name' config option, for specifying the component's name in disco responses.
author
Waqas Hussain
<waqas20@gmail.com>
Tue, 20 Oct 2009 21:18:17 +0000
(
02:18
+0500)
committer
Waqas Hussain
<waqas20@gmail.com>
Tue, 20 Oct 2009 21:18:17 +0000
(
02:18
+0500)
plugins/muc/mod_muc.lua
patch
|
blob
|
history
diff --git
a/plugins/muc/mod_muc.lua
b/plugins/muc/mod_muc.lua
index 3e6fafb85d217a723262857ea93d66edee894fb1..602de0f4fed1d4da3d2b0fe0041af8d12318bda8 100644
(file)
--- 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;