aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2017-02-20 00:37:46 +0100
committerKim Alvefur <zash@zash.se>2017-02-20 00:37:46 +0100
commitf6b5f2631e8d4ce38d1de8763a7eccbe4f6ff3d9 (patch)
tree025238123e6e863e892dc2efed2ea1cdb9b617e0 /plugins
parent23f6da0769d408844c0395f8ca78ba3724e755a8 (diff)
downloadprosody-f6b5f2631e8d4ce38d1de8763a7eccbe4f6ff3d9.tar.gz
prosody-f6b5f2631e8d4ce38d1de8763a7eccbe4f6ff3d9.zip
mod_mam: Add missing wrapping <query> element when returning the query form
Diffstat (limited to 'plugins')
-rw-r--r--plugins/mod_mam/mod_mam.lua2
1 files changed, 1 insertions, 1 deletions
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);