Mercurial > prosody-modules
comparison 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 |
comparison
equal
deleted
inserted
replaced
1626:aed20f9e78c8 | 1627:458c80904525 |
---|---|
136 { name = "start"; type = "text-single" }; | 136 { name = "start"; type = "text-single" }; |
137 { name = "end"; type = "text-single"; }; | 137 { name = "end"; type = "text-single"; }; |
138 }; | 138 }; |
139 | 139 |
140 -- Serve form | 140 -- Serve form |
141 module:hook("iq-get/self/"..xmlns_mam..":query", function(event) | 141 module:hook("iq-get/bare/"..xmlns_mam..":query", function(event) |
142 local origin, stanza = event.origin, event.stanza; | 142 local origin, stanza = event.origin, event.stanza; |
143 return origin.send(st.reply(stanza):add_child(query_form:form())); | 143 return origin.send(st.reply(stanza):add_child(query_form:form())); |
144 end); | 144 end); |
145 | 145 |
146 -- Handle archive queries | 146 -- Handle archive queries |