diff options
author | Waqas Hussain <waqas20@gmail.com> | 2009-05-31 01:14:57 +0500 |
---|---|---|
committer | Waqas Hussain <waqas20@gmail.com> | 2009-05-31 01:14:57 +0500 |
commit | 04245075eacbde2abb63edef49cdc630e07ddce3 (patch) | |
tree | 57c17a5573cb8ca746fb6fb859eba7a25519cf63 /plugins | |
parent | 3ca6b44ad6d350d03975fcde862288921dd316c8 (diff) | |
download | prosody-04245075eacbde2abb63edef49cdc630e07ddce3.tar.gz prosody-04245075eacbde2abb63edef49cdc630e07ddce3.zip |
mod_watchregistrations: Use module:hook instead of module:add_event_hook
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/mod_watchregistrations.lua | 3 |
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") |