projects
/
prosody.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c040add
)
MUC: Use type-specific config API for the 'name' option
author
Kim Alvefur
<zash@zash.se>
Fri, 11 Mar 2016 12:34:32 +0000
(13:34 +0100)
committer
Kim Alvefur
<zash@zash.se>
Fri, 11 Mar 2016 12:34:32 +0000
(13:34 +0100)
plugins/muc/mod_muc.lua
patch
|
blob
|
history
diff --git
a/plugins/muc/mod_muc.lua
b/plugins/muc/mod_muc.lua
index 693515042456856a5c7b1b994ecf5a19c48f02ec..ee90d5527bffca841c46480f1c3303376f3d98c0 100644
(file)
--- a/
plugins/muc/mod_muc.lua
+++ b/
plugins/muc/mod_muc.lua
@@
-13,8
+13,7
@@
if module:get_host_type() ~= "component" then
end
local muc_host = module:get_host();
-local muc_name = module:get_option("name");
-if type(muc_name) ~= "string" then muc_name = "Prosody Chatrooms"; end
+local muc_name = module:get_option_string("name", "Prosody Chatrooms");
local restrict_room_creation = module:get_option("restrict_room_creation");
if restrict_room_creation then
if restrict_room_creation == true then