aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2017-06-01 14:05:58 +0200
committerKim Alvefur <zash@zash.se>2017-06-01 14:05:58 +0200
commit7586690f44817e61f5a0ef8974a7bdba38d86028 (patch)
tree241ce473feccaef38dcf409ebac3d60868fc6a72 /plugins
parentf176688ed175d5e8768b3232a9d934f9a380bd61 (diff)
parent3c37921b044842e3c1e73cea3ac9be6bbcf997ed (diff)
downloadprosody-7586690f44817e61f5a0ef8974a7bdba38d86028.tar.gz
prosody-7586690f44817e61f5a0ef8974a7bdba38d86028.zip
Merge 0.10->trunk
Diffstat (limited to 'plugins')
-rw-r--r--plugins/mod_welcome.lua4
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);