Changeset

7266:f0a2a305b788

MUC: Use type-specific config API for the 'name' option
author Kim Alvefur <zash@zash.se>
date Fri, 11 Mar 2016 13:34:32 +0100
parents 7265:78be11bf62bf
children 7267:8ad2dbc4fdb6
files plugins/muc/mod_muc.lua
diffstat 1 files changed, 1 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/plugins/muc/mod_muc.lua	Fri Mar 11 13:13:20 2016 +0100
+++ b/plugins/muc/mod_muc.lua	Fri Mar 11 13:34:32 2016 +0100
@@ -13,8 +13,7 @@
 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