mod_mam_muc/mod_mam_muc.lua
changeset 1593 3e4d15ae2133
parent 1571 eed7db9f3157
equal deleted inserted replaced
1592:47fb4f36dacd 1593:3e4d15ae2133
    48 local archive = module:open_store(archive_store, "archive");
    48 local archive = module:open_store(archive_store, "archive");
    49 if not archive or archive.name == "null" then
    49 if not archive or archive.name == "null" then
    50 	module:log("error", "Could not open archive storage");
    50 	module:log("error", "Could not open archive storage");
    51 	return
    51 	return
    52 elseif not archive.find then
    52 elseif not archive.find then
    53 	module:log("error", "mod_%s does not support archiving, switch to mod_storage_sql2", archive._provided_by);
    53 	module:log("error", "mod_%s does not support archiving", archive._provided_by);
    54 	return
    54 	return
    55 end
    55 end
    56 
    56 
    57 local function logging_enabled(room)
    57 local function logging_enabled(room)
    58 	if log_all_rooms then
    58 	if log_all_rooms then