diff options
author | Kim Alvefur <zash@zash.se> | 2017-06-01 14:05:58 +0200 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2017-06-01 14:05:58 +0200 |
commit | 6fc795d35e8ca0e99828e7536099f9cd9b9b4433 (patch) | |
tree | 241ce473feccaef38dcf409ebac3d60868fc6a72 /plugins | |
parent | ab47caa72fdcefdcc2fd5c39c1a8300a64aa9125 (diff) | |
parent | aa3eb08cef920e003252cca86120323e14111b52 (diff) | |
download | prosody-6fc795d35e8ca0e99828e7536099f9cd9b9b4433.tar.gz prosody-6fc795d35e8ca0e99828e7536099f9cd9b9b4433.zip |
Merge 0.10->trunk
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/mod_welcome.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/mod_welcome.lua b/plugins/mod_welcome.lua index d74643de..f6b13df5 100644 --- a/plugins/mod_welcome.lua +++ b/plugins/mod_welcome.lua @@ -14,8 +14,8 @@ local st = require "util.stanza"; module:hook("user-registered", function (user) local welcome_stanza = - st.message({ to = user.username.."@"..user.host, from = host }) - :tag("body"):text(welcome_text:gsub("$(%w+)", user)); + st.message({ to = user.username.."@"..user.host, from = host }, + welcome_text:gsub("$(%w+)", user)); module:send(welcome_stanza); module:log("debug", "Welcomed user %s@%s", user.username, user.host); end); |