Software /
code /
prosody
Changeset
7227:c6f9d694d778
mod_welcome: Pass default text to config API as default value
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Wed, 02 Mar 2016 16:43:42 +0100 |
parents | 7226:9e380d145ad1 |
children | 7231:c018a44b822a |
files | plugins/mod_welcome.lua |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/plugins/mod_welcome.lua Wed Mar 02 16:42:59 2016 +0100 +++ b/plugins/mod_welcome.lua Wed Mar 02 16:43:42 2016 +0100 @@ -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";