From b834e9bacb5075c40d443453ad3811601ecb5481 Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Wed, 2 Mar 2016 16:42:59 +0100 Subject: mod_welcome: Use type-specific config API --- plugins/mod_welcome.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'plugins/mod_welcome.lua') diff --git a/plugins/mod_welcome.lua b/plugins/mod_welcome.lua index 9c0c821b..cd5118a7 100644 --- a/plugins/mod_welcome.lua +++ b/plugins/mod_welcome.lua @@ -7,7 +7,7 @@ -- local host = module:get_host(); -local welcome_text = module:get_option("welcome_message") or "Hello $username, welcome to the $host IM server!"; +local welcome_text = module:get_option_string("welcome_message") or "Hello $username, welcome to the $host IM server!"; local st = require "util.stanza"; -- cgit v1.2.3 From 5951bb0a05ba1cef7bcdf527e510f1dc6463060c Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Wed, 2 Mar 2016 16:43:42 +0100 Subject: mod_welcome: Pass default text to config API as default value --- plugins/mod_welcome.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'plugins/mod_welcome.lua') diff --git a/plugins/mod_welcome.lua b/plugins/mod_welcome.lua index cd5118a7..d74643de 100644 --- a/plugins/mod_welcome.lua +++ b/plugins/mod_welcome.lua @@ -7,7 +7,7 @@ -- local host = module:get_host(); -local welcome_text = module:get_option_string("welcome_message") or "Hello $username, welcome to the $host IM server!"; +local welcome_text = module:get_option_string("welcome_message", "Hello $username, welcome to the $host IM server!"); local st = require "util.stanza"; -- cgit v1.2.3