Diff

plugins/mod_mam/mod_mam.lua @ 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
parent 8000:42dd766cfe97
child 8132:6ddddfe05a74
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