comparison mod_mam/mod_mam.lua @ 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 279885fd9728
comparison
equal deleted inserted replaced
2000:b5adfe72709b 2001:3246d53ce0c3
42 module:log("error", "Unable to open archive storage, no archive capable storage driver enabled?"); 42 module:log("error", "Unable to open archive storage, no archive capable storage driver enabled?");
43 module:log("info", "See https://prosody.im/doc/storage and https://prosody.im/doc/archiving for more information"); 43 module:log("info", "See https://prosody.im/doc/storage and https://prosody.im/doc/archiving for more information");
44 return; 44 return;
45 elseif not archive.find then 45 elseif not archive.find then
46 module:log("debug", "Attempt to open archive storage returned a valid driver but it does not seem to implement the storage API"); 46 module:log("debug", "Attempt to open archive storage returned a valid driver but it does not seem to implement the storage API");
47 module:log("error", "mod_%s does not support archiving", archive._provided_by or archive.name and "storage_"..name.."(?)" or "<unknown>"); 47 module:log("error", "mod_%s does not support archiving", archive._provided_by or archive.name and "storage_"..archive.name.."(?)" or "<unknown>");
48 module:log("info", "See https://prosody.im/doc/storage and https://prosody.im/doc/archiving for more information"); 48 module:log("info", "See https://prosody.im/doc/storage and https://prosody.im/doc/archiving for more information");
49 return; 49 return;
50 end 50 end
51 51
52 -- Handle prefs. 52 -- Handle prefs.