Software /
code /
prosody
Comparison
plugins/mod_mam/mod_mam.lua @ 10298:906ea5e1ec75 0.11
mod_mam: Add flag to session when it performs a MAM query
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Thu, 03 Oct 2019 16:38:15 +0100 |
parent | 10028:79ba2d709e72 |
child | 10299:fd94721186b8 |
child | 10523:86422db90e02 |
comparison
equal
deleted
inserted
replaced
10293:f9301d93de72 | 10298:906ea5e1ec75 |
---|---|
87 -- Handle archive queries | 87 -- Handle archive queries |
88 module:hook("iq-set/self/"..xmlns_mam..":query", function(event) | 88 module:hook("iq-set/self/"..xmlns_mam..":query", function(event) |
89 local origin, stanza = event.origin, event.stanza; | 89 local origin, stanza = event.origin, event.stanza; |
90 local query = stanza.tags[1]; | 90 local query = stanza.tags[1]; |
91 local qid = query.attr.queryid; | 91 local qid = query.attr.queryid; |
92 | |
93 origin.mam_requested = true; | |
92 | 94 |
93 get_prefs(origin.username, true); | 95 get_prefs(origin.username, true); |
94 | 96 |
95 -- Search query parameters | 97 -- Search query parameters |
96 local qwith, qstart, qend; | 98 local qwith, qstart, qend; |