equal
deleted
inserted
replaced
211 origin.send(v); |
211 origin.send(v); |
212 end |
212 end |
213 -- That's all folks! |
213 -- That's all folks! |
214 module:log("debug", "Archive query %s completed", tostring(qid)); |
214 module:log("debug", "Archive query %s completed", tostring(qid)); |
215 |
215 |
|
216 if reverse then first, last = last, first; end |
216 return origin.send(st.reply(stanza) |
217 return origin.send(st.reply(stanza) |
217 :query(xmlns_mam):add_child(rsm.generate { |
218 :query(xmlns_mam):add_child(rsm.generate { |
218 first = (reverse and last or first), last = (reverse and first or last), count = #data})); |
219 first = first, last = last, count = #data })); |
219 end); |
220 end); |
220 |
221 |
221 local function has_in_roster(user, who) |
222 local function has_in_roster(user, who) |
222 local roster = rm_load_roster(user, host); |
223 local roster = rm_load_roster(user, host); |
223 module:log("debug", "%s has %s in roster? %s", user, who, roster[who] and "yes" or "no"); |
224 module:log("debug", "%s has %s in roster? %s", user, who, roster[who] and "yes" or "no"); |