X-Git-Url: https://git.enpas.org/?a=blobdiff_plain;f=plugins%2Fmod_welcome.lua;h=9c0c821b582b6b771c37f6a1672c8b17aad5f681;hb=384d0d3383d3ddb9dc8c024118b706c4053a1760;hp=8f9cca2ab2ce4a4315413e5203ca0a7b19ea1378;hpb=c72eea870ae98d356e03636a40f6cff16c2f6da1;p=prosody.git diff --git a/plugins/mod_welcome.lua b/plugins/mod_welcome.lua index 8f9cca2a..9c0c821b 100644 --- a/plugins/mod_welcome.lua +++ b/plugins/mod_welcome.lua @@ -1,7 +1,7 @@ -- Prosody IM -- Copyright (C) 2008-2010 Matthew Wild -- Copyright (C) 2008-2010 Waqas Hussain --- +-- -- This project is MIT/X11 licensed. Please see the -- COPYING file in the source package for more information. -- @@ -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);