Changeset

8161:31938a0c398f

Merge 0.9->0.10
author Kim Alvefur <zash@zash.se>
date Thu, 01 Jun 2017 14:05:43 +0200
parents 8159:3850993a9bda (current diff) 8160:5566f82ffea4 (diff)
children 8162:a49c8930da3d 8164:a395957f3bf2
files plugins/mod_welcome.lua
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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);