Merge 0.9->0.10 again
[prosody.git] / plugins / mod_watchregistrations.lua
index ef18d713ab353c3406857883020fd31195c157c4..b7be5daf8e8a945aa29de64e82b57d762a089a7f 100644 (file)
@@ -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.
 --
@@ -25,6 +25,6 @@ module:hook("user-registered", function (user)
        for jid in registration_watchers do
                module:log("debug", "Notifying %s", jid);
                message.attr.to = jid;
-               core_route_stanza(hosts[host], message);
+               module:send(message);
        end
 end);