Changeset

1252:350534579ba3

mod_welcome: Use module:hook instead of module:add_event_hook
author Waqas Hussain <waqas20@gmail.com>
date Sun, 31 May 2009 01:15:15 +0500 (2009-05-30)
parents 1251:302582b827ed
children 1253:60156584c442
files plugins/mod_welcome.lua
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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 })