plugins/mod_welcome.lua
changeset 5014 b2006c1cfa85
parent 3540 bc139431830b
child 5776 bd0ff8ae98a8
child 8163 5566f82ffea4
--- a/plugins/mod_welcome.lua	Thu Jul 26 04:33:17 2012 +0200
+++ b/plugins/mod_welcome.lua	Thu Jul 26 04:35:13 2012 +0200
@@ -16,6 +16,6 @@
 		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);
+		module:send(welcome_stanza);
 		module:log("debug", "Welcomed user %s@%s", user.username, user.host);
 	end);