diff options
author | Kim Alvefur <zash@zash.se> | 2017-06-01 14:05:43 +0200 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2017-06-01 14:05:43 +0200 |
commit | 3c37921b044842e3c1e73cea3ac9be6bbcf997ed (patch) | |
tree | 49c53bc5895483fbc4eb99b4df317d4c66870b40 /plugins/mod_welcome.lua | |
parent | bdab24d3dcfa9cd576e1f1548ef662c21c303008 (diff) | |
parent | 1114d2d04668656c5812d46fcfa437f65db6f6ba (diff) | |
download | prosody-3c37921b044842e3c1e73cea3ac9be6bbcf997ed.tar.gz prosody-3c37921b044842e3c1e73cea3ac9be6bbcf997ed.zip |
Merge 0.9->0.10
Diffstat (limited to 'plugins/mod_welcome.lua')
-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); |