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
commit42fca51e2687b452af9cd812b5c9e0781318e5e2 (patch)
tree025238123e6e863e892dc2efed2ea1cdb9b617e0 /plugins
parent9f191fe58de8bb83598dfdd5a613af6020a55a75 (diff)
downloadprosody-42fca51e2687b452af9cd812b5c9e0781318e5e2.tar.gz
prosody-42fca51e2687b452af9cd812b5c9e0781318e5e2.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);