Diff

plugins/mod_motd.lua @ 5024:d25e1b9332cc

Merge with Florob
author Matthew Wild <mwild1@gmail.com>
date Sat, 28 Jul 2012 01:14:31 +0100
parent 5014:b2006c1cfa85
child 5169:ed2d64fb7301
line wrap: on
line diff
--- a/plugins/mod_motd.lua	Sat Jun 09 02:27:44 2012 +0200
+++ b/plugins/mod_motd.lua	Sat Jul 28 01:14:31 2012 +0100
@@ -24,7 +24,7 @@
 			local motd_stanza =
 				st.message({ to = session.full_jid, from = motd_jid })
 					:tag("body"):text(motd_text);
-			core_route_stanza(hosts[host], motd_stanza);
+			module:send(motd_stanza);
 			module:log("debug", "MOTD send to user %s", session.full_jid);
 		end
 end, 1);