Changeset

7904:c011cecad576

mod_mam: Add missing wrapping <query> element when returning the query form
author Kim Alvefur <zash@zash.se>
date Mon, 20 Feb 2017 00:37:46 +0100
parents 7903:036c771b842a
children 7905:daf83bd94906
files plugins/mod_mam/mod_mam.lua
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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);