projects
/
prosody.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f475cd1
)
mod_welcome: Pass default text to config API as default value
author
Kim Alvefur
<zash@zash.se>
Wed, 2 Mar 2016 15:43:42 +0000
(16:43 +0100)
committer
Kim Alvefur
<zash@zash.se>
Wed, 2 Mar 2016 15:43:42 +0000
(16:43 +0100)
plugins/mod_welcome.lua
patch
|
blob
|
history
diff --git
a/plugins/mod_welcome.lua
b/plugins/mod_welcome.lua
index cd5118a74506a03311b572a180f5fb62d432b83c..d74643de174ca4ff46fec5fe1ec51977f3148b28 100644
(file)
--- 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";