mod_mam/mod_mam.lua
changeset 2509 1398f3f76c0f
parent 2297 144b74caa5ef
child 2510 5941aac79f06
--- a/mod_mam/mod_mam.lua	Fri Feb 17 17:54:56 2017 +0100
+++ b/mod_mam/mod_mam.lua	Mon Feb 20 00:44:27 2017 +0100
@@ -84,7 +84,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);