mod_announce, mod_motd, mod_pubsub, mod_register, mod_watchregistrations, mod_welcome...
[prosody.git] / plugins / mod_motd.lua
index 39b74de98ef4af57e95bb635aa0016a1fe427b68..ddde9c7850d25c013955dbb9a4b6f619b6850fca 100644 (file)
@@ -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);