stanza_router: Call core_post_stanza from core_route_stanza in place of old routing...
[prosody.git] / plugins / mod_watchregistrations.lua
index eb468388ab0c064e5bc714d0cdd8a5971291ea0d..93e69208d02a4fb9ec4b4d16a37bf0808afa0ba2 100644 (file)
@@ -10,7 +10,8 @@ local registration_alert = config.get(host, "core", "registration_notification")
 
 local st = require "util.stanza";
 
-module:add_event_hook("user-registered", function (user)
+module:hook("user-registered",
+       function (user)
                module:log("debug", "Notifying of new registration");
                local message = st.message{ type = "chat", from = host }
                                        :tag("body")