Mercurial > prosody-modules
comparison mod_mam_muc/mod_mam_muc.lua @ 1541:ef032840bc92
mod_mam_muc: Fix indentation
| author | Kim Alvefur <zash@zash.se> |
|---|---|
| date | Wed, 29 Oct 2014 12:37:26 +0100 |
| parents | 0c26b1638f8c |
| children | ccb9dc624ebd |
comparison
equal
deleted
inserted
replaced
| 1540:0c26b1638f8c | 1541:ef032840bc92 |
|---|---|
| 34 local log_by_default = module:get_option_boolean("muc_log_by_default", true); | 34 local log_by_default = module:get_option_boolean("muc_log_by_default", true); |
| 35 | 35 |
| 36 local archive_store = "archive2"; | 36 local archive_store = "archive2"; |
| 37 local archive = module:open_store(archive_store, "archive"); | 37 local archive = module:open_store(archive_store, "archive"); |
| 38 if not archive or archive.name == "null" then | 38 if not archive or archive.name == "null" then |
| 39 module:log("error", "Could not open archive storage"); | 39 module:log("error", "Could not open archive storage"); |
| 40 return | 40 return |
| 41 elseif not archive.find then | 41 elseif not archive.find then |
| 42 module:log("error", "mod_%s does not support archiving, switch to mod_storage_sql2", archive._provided_by); | 42 module:log("error", "mod_%s does not support archiving, switch to mod_storage_sql2", archive._provided_by); |
| 43 return | 43 return |
| 44 end | 44 end |
| 45 | 45 |
| 46 local send_history, save_to_history; | 46 local send_history, save_to_history; |
| 47 | 47 |
| 48 -- Override history methods for all rooms. | 48 -- Override history methods for all rooms. |
