aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/mod_watchregistrations.lua
diff options
context:
space:
mode:
authorWaqas Hussain <waqas20@gmail.com>2011-12-12 14:53:12 +0500
committerWaqas Hussain <waqas20@gmail.com>2011-12-12 14:53:12 +0500
commit786751f7302bc6bbaee879d6d55ae7a85d0237d2 (patch)
tree979b8f7ba5b076b9f9c64d37702d4ee8ad941408 /plugins/mod_watchregistrations.lua
parent36833f9ae910f52c4b58d65a69b9d08e5a26cfbf (diff)
downloadprosody-786751f7302bc6bbaee879d6d55ae7a85d0237d2.tar.gz
prosody-786751f7302bc6bbaee879d6d55ae7a85d0237d2.zip
mod_watchregistrations: Fixed an undefined global access (thanks Medics).
Diffstat (limited to 'plugins/mod_watchregistrations.lua')
-rw-r--r--plugins/mod_watchregistrations.lua2
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