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 | df70fc25088c763d2878f796f9628415db79e8c6 (patch) | |
tree | b262fce04e2743e13aa28d39844d2bff7bf354dc /plugins/mod_welcome.lua | |
parent | 9114e88ee0cf86ca0ffe500e089389e54bb730ec (diff) | |
download | prosody-df70fc25088c763d2878f796f9628415db79e8c6.tar.gz prosody-df70fc25088c763d2878f796f9628415db79e8c6.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_welcome.lua')
-rw-r--r-- | plugins/mod_welcome.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/mod_welcome.lua b/plugins/mod_welcome.lua index 8f9cca2a..e498f0b3 100644 --- a/plugins/mod_welcome.lua +++ b/plugins/mod_welcome.lua @@ -16,6 +16,6 @@ module:hook("user-registered", 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); |