Software /
code /
prosody
Diff
plugins/mod_motd.lua @ 5014:b2006c1cfa85
mod_announce, mod_motd, mod_pubsub, mod_register, mod_watchregistrations, mod_welcome: Use module:send() instead of core_*_stanza()
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Thu, 26 Jul 2012 04:35:13 +0200 |
parent | 4654:0975505f5a54 |
child | 5169:ed2d64fb7301 |
line wrap: on
line diff
--- a/plugins/mod_motd.lua Thu Jul 26 04:33:17 2012 +0200 +++ b/plugins/mod_motd.lua Thu Jul 26 04:35:13 2012 +0200 @@ -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);