Mercurial > prosody-modules
comparison mod_mam/fallback_archive.lib.lua @ 2508:03f6d9ed2903
mod_mam/fallback_archive: Remove unused variables
| author | Kim Alvefur <zash@zash.se> |
|---|---|
| date | Mon, 20 Feb 2017 00:05:48 +0100 |
| parents | 98b4794b72e4 |
| children |
comparison
equal
deleted
inserted
replaced
| 2507:b8a66805459e | 2508:03f6d9ed2903 |
|---|---|
| 63 return true; | 63 return true; |
| 64 end | 64 end |
| 65 local archive = store[username]; | 65 local archive = store[username]; |
| 66 if not archive then return true; end -- no messages, nothing to delete | 66 if not archive then return true; end -- no messages, nothing to delete |
| 67 | 67 |
| 68 local start, stop, step = 1, archive[0] or #archive, 1; | |
| 69 local qstart = query.start or -math.huge; | 68 local qstart = query.start or -math.huge; |
| 70 local qend = query["end"] or math.huge; | 69 local qend = query["end"] or math.huge; |
| 71 local qwith = query.with; | 70 local qwith = query.with; |
| 72 store[username] = nil; | 71 store[username] = nil; |
| 73 for i = 1, #archive do | 72 for i = 1, #archive do |
