aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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 })