Software /
code /
prosody-modules
Comparison
mod_mam_muc/mod_mam_muc.lua @ 1547:e98c335c6554
mod_mam_muc: Limit search to groupchat messages (we use the internal 'with' field stanza types)
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Sat, 08 Nov 2014 15:46:47 +0100 |
parent | 1546:fff2858c554f |
child | 1548:d3c847070618 |
comparison
equal
deleted
inserted
replaced
1546:fff2858c554f | 1547:e98c335c6554 |
---|---|
193 start = qstart; ["end"] = qend; -- Time range | 193 start = qstart; ["end"] = qend; -- Time range |
194 limit = qmax; | 194 limit = qmax; |
195 before = before; after = after; | 195 before = before; after = after; |
196 reverse = reverse; | 196 reverse = reverse; |
197 total = true; | 197 total = true; |
198 with = "message<groupchat"; | |
198 }); | 199 }); |
199 | 200 |
200 if not data then | 201 if not data then |
201 return origin.send(st.error_reply(stanza, "cancel", "internal-server-error")); | 202 return origin.send(st.error_reply(stanza, "cancel", "internal-server-error")); |
202 end | 203 end |