mod_mam: Fix rebase mistake [luacheck] 0.11
authorKim Alvefur <zash@zash.se>
Tue, 24 Dec 2019 01:01:05 +0100
branch0.11
changeset 10571 3df479098696
parent 10570 f4d12b1434c6
child 10572 b6f93babebe8
child 10573 fdc2bae50100
mod_mam: Fix rebase mistake [luacheck] The 'err' was there in trunk
plugins/mod_mam/mod_mam.lua
--- a/plugins/mod_mam/mod_mam.lua	Tue Dec 24 01:00:35 2019 +0100
+++ b/plugins/mod_mam/mod_mam.lua	Tue Dec 24 01:01:05 2019 +0100
@@ -297,7 +297,7 @@
 		log("debug", "Archiving stanza: %s", stanza:top_tag());
 
 		-- And stash it
-		local ok = archive:append(store_user, nil, clone_for_storage, time_now(), with);
+		local ok, err = archive:append(store_user, nil, clone_for_storage, time_now(), with);
 		if ok then
 			local clone_for_other_handlers = st.clone(stanza);
 			local id = ok;