aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/mod_watchregistrations.lua
diff options
context:
space:
mode:
authorEmmanuel Gil Peyrot <linkmauve@linkmauve.fr>2017-05-27 14:23:43 +0100
committerEmmanuel Gil Peyrot <linkmauve@linkmauve.fr>2017-05-27 14:23:43 +0100
commite1c4cfd9ccd59c9bba7804b355bd9a20dab94ca8 (patch)
tree2e28c62acf5ec5af39fbf20c49131b61ba4acbdc /plugins/mod_watchregistrations.lua
parente2a33aa4cb0e4cac4c590e99b9d769b4969fd9d2 (diff)
downloadprosody-e1c4cfd9ccd59c9bba7804b355bd9a20dab94ca8.tar.gz
prosody-e1c4cfd9ccd59c9bba7804b355bd9a20dab94ca8.zip
mod_watchregistrations: Return the pointer to the root of the stanza, fixes #922.
Diffstat (limited to 'plugins/mod_watchregistrations.lua')
-rw-r--r--plugins/mod_watchregistrations.lua3
1 files changed, 2 insertions, 1 deletions
diff --git a/plugins/mod_watchregistrations.lua b/plugins/mod_watchregistrations.lua
index abca90bd..0e9d2fca 100644
--- a/plugins/mod_watchregistrations.lua
+++ b/plugins/mod_watchregistrations.lua
@@ -21,7 +21,8 @@ module:hook("user-registered", function (user)
:tag("body")
:text(registration_notification:gsub("%$(%w+)", function (v)
return user[v] or user.session and user.session[v] or nil;
- end));
+ end))
+ :up();
for jid in registration_watchers do
module:log("debug", "Notifying %s", jid);
message.attr.to = jid;