diff options
author | Waqas Hussain <waqas20@gmail.com> | 2011-12-12 14:53:12 +0500 |
---|---|---|
committer | Waqas Hussain <waqas20@gmail.com> | 2011-12-12 14:53:12 +0500 |
commit | fe1b3127b2789925f0bac40c4e279edbdf773982 (patch) | |
tree | a0b35debb5abf4ed384e1c987401b8b509a29b55 /plugins/mod_watchregistrations.lua | |
parent | b1a0c2c1a8bdfcb1ec2dc3e6a1c02dcfa838649c (diff) | |
download | prosody-fe1b3127b2789925f0bac40c4e279edbdf773982.tar.gz prosody-fe1b3127b2789925f0bac40c4e279edbdf773982.zip |
mod_watchregistrations: Fixed an undefined global access (thanks Medics).
Diffstat (limited to 'plugins/mod_watchregistrations.lua')
-rw-r--r-- | plugins/mod_watchregistrations.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/mod_watchregistrations.lua b/plugins/mod_watchregistrations.lua index ee51566b..42f9c017 100644 --- a/plugins/mod_watchregistrations.lua +++ b/plugins/mod_watchregistrations.lua @@ -18,7 +18,7 @@ module:hook("user-registered", function (user) 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 |