# HG changeset patch # User Waqas Hussain # Date 1243714515 -18000 # Node ID 350534579ba3c41c934bcc02015e743523cccfbc # Parent 302582b827ed899ac1d9cd6c0752230b35e7c807 mod_welcome: Use module:hook instead of module:add_event_hook diff -r 302582b827ed -r 350534579ba3 plugins/mod_welcome.lua --- a/plugins/mod_welcome.lua Sun May 31 01:14:57 2009 +0500 +++ b/plugins/mod_welcome.lua Sun May 31 01:15:15 2009 +0500 @@ -13,7 +13,7 @@ local st = require "util.stanza"; -module:add_event_hook("user-registered", +module:hook("user-registered", function (user) local welcome_stanza = st.message({ to = user.username.."@"..user.host, from = host })