Merge 0.9->0.10

This commit is contained in:
Kim Alvefur 2017-06-01 14:05:43 +02:00
commit aa3eb08cef

View file

@ -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);