aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/mod_welcome.lua
diff options
context:
space:
mode:
authorWaqas Hussain <waqas20@gmail.com>2009-05-31 01:15:15 +0500
committerWaqas Hussain <waqas20@gmail.com>2009-05-31 01:15:15 +0500
commitb31e2b6daad49e1baa3e88f9b8b1dab4054a3ad2 (patch)
treec049133c85fc3fba8d1868b8397ac1633bc0179b /plugins/mod_welcome.lua
parent04245075eacbde2abb63edef49cdc630e07ddce3 (diff)
downloadprosody-b31e2b6daad49e1baa3e88f9b8b1dab4054a3ad2.tar.gz
prosody-b31e2b6daad49e1baa3e88f9b8b1dab4054a3ad2.zip
mod_welcome: Use module:hook instead of module:add_event_hook
Diffstat (limited to 'plugins/mod_welcome.lua')
-rw-r--r--plugins/mod_welcome.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/mod_welcome.lua b/plugins/mod_welcome.lua
index 491acb8f..05f5d3cf 100644
--- a/plugins/mod_welcome.lua
+++ b/plugins/mod_welcome.lua
@@ -13,7 +13,7 @@ local welcome_text = config.get("*", "core", "welcome_message") or "Hello $user,
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 })