Mercurial > prosody-modules
comparison mod_mam/mod_mam.lua @ 2020:37b30f10fbba
mod_mam: Bit of spacing between blocks of code
| author | Kim Alvefur <zash@zash.se> |
|---|---|
| date | Tue, 19 Jan 2016 14:33:25 +0100 |
| parents | 7198c129657c |
| children | 5fb917b86838 |
comparison
equal
deleted
inserted
replaced
| 2019:7198c129657c | 2020:37b30f10fbba |
|---|---|
| 35 global_default_policy = module:get_option_boolean("default_archive_policy", global_default_policy); | 35 global_default_policy = module:get_option_boolean("default_archive_policy", global_default_policy); |
| 36 end | 36 end |
| 37 | 37 |
| 38 local archive_store = "archive2"; | 38 local archive_store = "archive2"; |
| 39 local archive = assert(module:open_store(archive_store, "archive")); | 39 local archive = assert(module:open_store(archive_store, "archive")); |
| 40 | |
| 40 if archive.name == "null" then | 41 if archive.name == "null" then |
| 41 module:log("debug", "Attempt to open archive storage returned null driver"); | 42 module:log("debug", "Attempt to open archive storage returned null driver"); |
| 42 module:log("error", "Unable to open archive storage, no archive capable storage driver enabled?"); | 43 module:log("error", "Unable to open archive storage, no archive capable storage driver enabled?"); |
| 43 module:log("info", "See https://prosody.im/doc/storage and https://prosody.im/doc/archiving for more information"); | 44 module:log("info", "See https://prosody.im/doc/storage and https://prosody.im/doc/archiving for more information"); |
| 44 return; | 45 return; |
| 177 results[count] = fwd_st; | 178 results[count] = fwd_st; |
| 178 else | 179 else |
| 179 origin.send(fwd_st); | 180 origin.send(fwd_st); |
| 180 end | 181 end |
| 181 end | 182 end |
| 183 | |
| 182 if reverse then | 184 if reverse then |
| 183 for i = #results, 1, -1 do | 185 for i = #results, 1, -1 do |
| 184 origin.send(results[i]); | 186 origin.send(results[i]); |
| 185 end | 187 end |
| 186 end | 188 end |
