# HG changeset patch # User Waqas Hussain # Date 1323683592 -18000 # Node ID 7dc743378e1ee9f74054c7af33027441b6f79a77 # Parent 7de17ca4de14143e4f8997359c4f3ff43162ee3e mod_watchregistrations: Fixed an undefined global access (thanks Medics). diff -r 7de17ca4de14 -r 7dc743378e1e plugins/mod_watchregistrations.lua --- a/plugins/mod_watchregistrations.lua Mon Dec 12 17:08:48 2011 +1100 +++ 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