From f6b5f2631e8d4ce38d1de8763a7eccbe4f6ff3d9 Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Mon, 20 Feb 2017 00:37:46 +0100 Subject: mod_mam: Add missing wrapping element when returning the query form --- plugins/mod_mam/mod_mam.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'plugins/mod_mam') diff --git a/plugins/mod_mam/mod_mam.lua b/plugins/mod_mam/mod_mam.lua index 7c8dbceb..5e09ec89 100644 --- a/plugins/mod_mam/mod_mam.lua +++ b/plugins/mod_mam/mod_mam.lua @@ -89,7 +89,7 @@ local query_form = dataform { -- 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); -- cgit v1.2.3