From 863f155efbaed606bd6d83bc052175e2d9bec2da Mon Sep 17 00:00:00 2001 From: Emmanuel Gil Peyrot Date: Sun, 2 Apr 2017 19:38:52 +0100 Subject: mod_mam: Remove extraneous assert when opening the store --- plugins/mod_mam/mod_mam.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/mod_mam/mod_mam.lua b/plugins/mod_mam/mod_mam.lua index 55572867..0c35f43f 100644 --- a/plugins/mod_mam/mod_mam.lua +++ b/plugins/mod_mam/mod_mam.lua @@ -38,7 +38,7 @@ local default_max_items, max_max_items = 20, module:get_option_number("max_archi local strip_tags = module:get_option_set("dont_archive_namespaces", { "http://jabber.org/protocol/chatstates" }); local archive_store = module:get_option_string("archive_store", "archive"); -local archive = assert(module:open_store(archive_store, "archive")); +local archive = module:open_store(archive_store, "archive"); if archive.name == "null" or not archive.find then if not archive.find then -- cgit v1.2.3 From bf96691bcc7ceeef346906259ebe901c09a6e876 Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Sun, 2 Apr 2017 22:26:52 +0200 Subject: luacheckrc: Declare module.environment as writable (thanks Link Mauve) --- .luacheckrc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.luacheckrc b/.luacheckrc index 8b1afa42..91face3f 100644 --- a/.luacheckrc +++ b/.luacheckrc @@ -23,7 +23,6 @@ files["plugins/"] = { "module.event_handlers", "module.reloading", "module.saved_state", - "module.environment", "module.global", "module.path", @@ -87,6 +86,7 @@ files["plugins/"] = { "module.save", "module.restore", "module.command", + "module.environment", }; } files["tests/"] = { -- cgit v1.2.3