mod_mam_muc: fix <iq type='get' to='room-bare-jid'> query
authorStuart Carnie <stuart.carnie@gmail.com>
Tue, 24 Mar 2015 08:03:25 -0700
changeset 1631 458c80904525
parent 1630 aed20f9e78c8
child 1632 5e4b37b9cde1
mod_mam_muc: fix <iq type='get' to='room-bare-jid'> query
mod_mam_muc/mod_mam_muc.lua
--- 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);