changeset 1627:458c80904525

mod_mam_muc: fix <iq type='get' to='room-bare-jid'> query
author Stuart Carnie <stuart.carnie@gmail.com>
date Tue, 24 Mar 2015 08:03:25 -0700
parents aed20f9e78c8
children 5e4b37b9cde1
files mod_mam_muc/mod_mam_muc.lua
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mod_mam_muc/mod_mam_muc.lua	Mon Mar 16 16:19:53 2015 +0100
+++ b/mod_mam_muc/mod_mam_muc.lua	Tue Mar 24 08:03:25 2015 -0700
@@ -138,7 +138,7 @@
 };
 
 -- Serve form
-module:hook("iq-get/self/"..xmlns_mam..":query", function(event)
+module:hook("iq-get/bare/"..xmlns_mam..":query", function(event)
 	local origin, stanza = event.origin, event.stanza;
 	return origin.send(st.reply(stanza):add_child(query_form:form()));
 end);