# HG changeset patch # User Emmanuel Gil Peyrot # Date 1495891423 -3600 # Node ID 8e26672df704269911cc806a9571d53b5e9fcbcb # Parent 2c65f8be38aabe3307101d8bed3f61ce6adde671 mod_watchregistrations: Return the pointer to the root of the stanza, fixes #922. diff -r 2c65f8be38aa -r 8e26672df704 plugins/mod_watchregistrations.lua --- a/plugins/mod_watchregistrations.lua Mon May 22 05:32:11 2017 +0200 +++ b/plugins/mod_watchregistrations.lua Sat May 27 14:23:43 2017 +0100 @@ -21,7 +21,8 @@ :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;