Mercurial > prosody-hg
comparison plugins/mod_mam/mod_mam.lua @ 12556:706375b75475
mod_mam: Silence luacheck (yay warnings in CI but not locally)
| author | Kim Alvefur <zash@zash.se> |
|---|---|
| date | Tue, 14 Jun 2022 22:06:21 +0200 |
| parents | 519e6403f455 |
| children | 781772c8b6d9 |
comparison
equal
deleted
inserted
replaced
| 12555:519e6403f455 | 12556:706375b75475 |
|---|---|
| 51 error("mod_"..(archive._provided_by or archive.name and "storage_"..archive.name).." does not support archiving\n" | 51 error("mod_"..(archive._provided_by or archive.name and "storage_"..archive.name).." does not support archiving\n" |
| 52 .."See https://prosody.im/doc/storage and https://prosody.im/doc/archiving for more information"); | 52 .."See https://prosody.im/doc/storage and https://prosody.im/doc/archiving for more information"); |
| 53 end | 53 end |
| 54 local use_total = module:get_option_boolean("mam_include_total", true); | 54 local use_total = module:get_option_boolean("mam_include_total", true); |
| 55 | 55 |
| 56 function schedule_cleanup(_username, _date) | 56 function schedule_cleanup(_username, _date) -- luacheck: ignore 212 |
| 57 -- Called to make a note of which users have messages on which days, which in | 57 -- Called to make a note of which users have messages on which days, which in |
| 58 -- turn is used to optimize the message expiry routine. | 58 -- turn is used to optimize the message expiry routine. |
| 59 -- | 59 -- |
| 60 -- This noop is conditionally replaced later depending on retention settings | 60 -- This noop is conditionally replaced later depending on retention settings |
| 61 -- and storage backend capabilities. | 61 -- and storage backend capabilities. |
