comparison mod_profile/mod_profile.lua @ 3208:e55172ce68d4

mod_profile: Abort if mod_pep doesn't appear to be the former mod_pep_plus
author Kim Alvefur <zash@zash.se>
date Thu, 02 Aug 2018 03:35:36 +0200
parents 149cc5ddc64f
children 1d57f485efef
comparison
equal deleted inserted replaced
3207:149cc5ddc64f 3208:e55172ce68d4
13 local t_insert, t_remove = table.insert, table.remove; 13 local t_insert, t_remove = table.insert, table.remove;
14 14
15 local pep_plus; 15 local pep_plus;
16 if module:get_host_type() == "local" and module:get_option_boolean("vcard_to_pep", true) then 16 if module:get_host_type() == "local" and module:get_option_boolean("vcard_to_pep", true) then
17 pep_plus = module:depends"pep"; 17 pep_plus = module:depends"pep";
18 assert(pep_plus.get_pep_service, "Wrong version of mod_pep loaded, you need to update Prosody");
18 end 19 end
19 20
20 local storage = module:open_store(); 21 local storage = module:open_store();
21 local legacy_storage = module:open_store("vcard"); 22 local legacy_storage = module:open_store("vcard");
22 23