diff mod_mam_muc/mod_mam_muc.lua @ 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 28411e97db94
children 7fa0c41792c7
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);