diff options
author | Kim Alvefur <zash@zash.se> | 2012-07-26 04:35:13 +0200 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2012-07-26 04:35:13 +0200 |
commit | 4330e1308d1858206a3da4fcfea39e04d1d5a141 (patch) | |
tree | b262fce04e2743e13aa28d39844d2bff7bf354dc /plugins/mod_motd.lua | |
parent | 790e0bb9b426413f10e5efcd0dfd680e9bf20de2 (diff) | |
download | prosody-4330e1308d1858206a3da4fcfea39e04d1d5a141.tar.gz prosody-4330e1308d1858206a3da4fcfea39e04d1d5a141.zip |
mod_announce, mod_motd, mod_pubsub, mod_register, mod_watchregistrations, mod_welcome: Use module:send() instead of core_*_stanza()
Diffstat (limited to 'plugins/mod_motd.lua')
-rw-r--r-- | plugins/mod_motd.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/mod_motd.lua b/plugins/mod_motd.lua index 39b74de9..ddde9c78 100644 --- a/plugins/mod_motd.lua +++ b/plugins/mod_motd.lua @@ -24,7 +24,7 @@ module:hook("presence/bare", function (event) 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); |