# HG changeset patch # User Waqas Hussain # Date 1243714497 -18000 # Node ID 302582b827ed899ac1d9cd6c0752230b35e7c807 # Parent ef053ab86f5e43919801cb3d70946bc3b428131e mod_watchregistrations: Use module:hook instead of module:add_event_hook diff -r ef053ab86f5e -r 302582b827ed plugins/mod_watchregistrations.lua --- a/plugins/mod_watchregistrations.lua Sun May 31 01:11:48 2009 +0500 +++ b/plugins/mod_watchregistrations.lua Sun May 31 01:14:57 2009 +0500 @@ -10,7 +10,8 @@ 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")