From 04245075eacbde2abb63edef49cdc630e07ddce3 Mon Sep 17 00:00:00 2001 From: Waqas Hussain Date: Sun, 31 May 2009 01:14:57 +0500 Subject: mod_watchregistrations: Use module:hook instead of module:add_event_hook --- plugins/mod_watchregistrations.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'plugins/mod_watchregistrations.lua') 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") -- cgit v1.2.3