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