Changeset

8047:eb9784561387

mod_mam: Remove extraneous assert when opening the store
author Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
date Sun, 02 Apr 2017 19:38:52 +0100
parents 8045:55a56dc935f2
children 8048:75e37366a03f
files plugins/mod_mam/mod_mam.lua
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/plugins/mod_mam/mod_mam.lua	Sun Apr 02 00:24:07 2017 +0200
+++ b/plugins/mod_mam/mod_mam.lua	Sun Apr 02 19:38:52 2017 +0100
@@ -38,7 +38,7 @@
 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