aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/mod_welcome.lua
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/mod_welcome.lua')
-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);