mod_mam: Fix accidental global access
authorKim Alvefur <zash@zash.se>
Sat, 09 Jan 2016 15:20:19 +0100
changeset 2005 3246d53ce0c3
parent 2004 b5adfe72709b
child 2006 ce991c678370
mod_mam: Fix accidental global access
mod_mam/mod_mam.lua
--- a/mod_mam/mod_mam.lua	Sat Jan 09 14:18:07 2016 +0100
+++ b/mod_mam/mod_mam.lua	Sat Jan 09 15:20:19 2016 +0100
@@ -44,7 +44,7 @@
 	return;
 elseif not archive.find then
 	module:log("debug", "Attempt to open archive storage returned a valid driver but it does not seem to implement the storage API");
-	module:log("error", "mod_%s does not support archiving", archive._provided_by or archive.name and "storage_"..name.."(?)" or "<unknown>");
+	module:log("error", "mod_%s does not support archiving", archive._provided_by or archive.name and "storage_"..archive.name.."(?)" or "<unknown>");
 	module:log("info", "See https://prosody.im/doc/storage and https://prosody.im/doc/archiving for more information");
 	return;
 end