aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--plugins/mod_watchregistrations.lua3
1 files changed, 2 insertions, 1 deletions
diff --git a/plugins/mod_watchregistrations.lua b/plugins/mod_watchregistrations.lua
index eb468388..93e69208 100644
--- a/plugins/mod_watchregistrations.lua
+++ b/plugins/mod_watchregistrations.lua
@@ -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")