Software /
code /
prosody
Changeset
4477:b34eee3712c3
mod_watchregistrations: Fixed an undefined global access (thanks Medics).
author | Waqas Hussain <waqas20@gmail.com> |
---|---|
date | Mon, 12 Dec 2011 14:53:12 +0500 |
parents | 4476:53ce21286b8c |
children | 4478:3e33b2d2e48e 4489:e68bc6f35106 |
files | plugins/mod_watchregistrations.lua |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/plugins/mod_watchregistrations.lua Tue Jan 17 21:10:16 2012 +0000 +++ b/plugins/mod_watchregistrations.lua Mon Dec 12 14:53:12 2011 +0500 @@ -18,7 +18,7 @@ module:log("debug", "Notifying of new registration"); local message = st.message{ type = "chat", from = host } :tag("body") - :text(registration_alert:gsub("%$(%w+)", function (v) + :text(registration_notification:gsub("%$(%w+)", function (v) return user[v] or user.session and user.session[v] or nil; end)); for _, jid in ipairs(registration_watchers) do