diff options
author | Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> | 2017-05-27 14:23:43 +0100 |
---|---|---|
committer | Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> | 2017-05-27 14:23:43 +0100 |
commit | 2922e3c9a097f34ff14618c6344e4a705036a4c9 (patch) | |
tree | 2e28c62acf5ec5af39fbf20c49131b61ba4acbdc | |
parent | 2128b374fd84705ff5a71fe8d0037151e899806b (diff) | |
download | prosody-2922e3c9a097f34ff14618c6344e4a705036a4c9.tar.gz prosody-2922e3c9a097f34ff14618c6344e4a705036a4c9.zip |
mod_watchregistrations: Return the pointer to the root of the stanza, fixes #922.
-rw-r--r-- | plugins/mod_watchregistrations.lua | 3 |
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; |