# HG changeset patch # User Kim Alvefur # Date 1496318743 -7200 # Node ID 31938a0c398f6d9971de273e595ad62928194e5a # Parent 3850993a9bda5ef0ae53d3e48d435f9460f2a096# Parent 5566f82ffea413146a3d10d0746a940fa102b994 Merge 0.9->0.10 diff -r 3850993a9bda -r 31938a0c398f plugins/mod_welcome.lua --- a/plugins/mod_welcome.lua Thu Jun 01 14:03:50 2017 +0200 +++ b/plugins/mod_welcome.lua Thu Jun 01 14:05:43 2017 +0200 @@ -14,8 +14,8 @@ 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);