# HG changeset patch # User Kim Alvefur # Date 1487547466 -3600 # Node ID c011cecad576d396505925ea4a64aa6611c902dc # Parent 036c771b842ac00d9b3839f42f4442eec47e1225 mod_mam: Add missing wrapping element when returning the query form diff -r 036c771b842a -r c011cecad576 plugins/mod_mam/mod_mam.lua --- a/plugins/mod_mam/mod_mam.lua Mon Feb 20 00:32:59 2017 +0100 +++ b/plugins/mod_mam/mod_mam.lua Mon Feb 20 00:37:46 2017 +0100 @@ -89,7 +89,7 @@ -- Serve form module:hook("iq-get/self/"..xmlns_mam..":query", function(event) local origin, stanza = event.origin, event.stanza; - origin.send(st.reply(stanza):add_child(query_form:form())); + origin.send(st.reply(stanza):query(xmlns_mam):add_child(query_form:form())); return true; end);