Software /
code /
prosody
Changeset
1251:302582b827ed
mod_watchregistrations: Use module:hook instead of module:add_event_hook
author | Waqas Hussain <waqas20@gmail.com> |
---|---|
date | Sun, 31 May 2009 01:14:57 +0500 |
parents | 1250:ef053ab86f5e |
children | 1252:350534579ba3 |
files | plugins/mod_watchregistrations.lua |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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")