changeset 2001:3246d53ce0c3

mod_mam: Fix accidental global access
author Kim Alvefur <zash@zash.se>
date Sat, 09 Jan 2016 15:20:19 +0100
parents b5adfe72709b
children ce991c678370
files mod_mam/mod_mam.lua
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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