--- a/plugins/mod_welcome.lua Sat Oct 16 08:34:32 2010 +0500 +++ b/plugins/mod_welcome.lua Sat Oct 16 23:00:42 2010 +0500 @@ -11,9 +11,9 @@ local st = require "util.stanza"; -module:hook("user-registered", +module:hook("user-registered", function (user) - local welcome_stanza = + local welcome_stanza = st.message({ to = user.username.."@"..user.host, from = host }) :tag("body"):text(welcome_text:gsub("$(%w+)", user)); core_route_stanza(hosts[host], welcome_stanza);