projects
/
prosody.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
mod_welcome: Use module:hook instead of module:add_event_hook
[prosody.git]
/
plugins
/
mod_welcome.lua
diff --git
a/plugins/mod_welcome.lua
b/plugins/mod_welcome.lua
index 491acb8f932970616d670c07987872280dd59526..05f5d3cfb8054893ea3c5d895c991aae9d4136e4 100644
(file)
--- 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 })