Diff

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
parent 3207:149cc5ddc64f
child 3245:1d57f485efef
line wrap: on
line diff
--- a/mod_profile/mod_profile.lua	Thu Aug 02 03:35:33 2018 +0200
+++ b/mod_profile/mod_profile.lua	Thu Aug 02 03:35:36 2018 +0200
@@ -15,6 +15,7 @@
 local pep_plus;
 if module:get_host_type() == "local" and module:get_option_boolean("vcard_to_pep", true) then
 	pep_plus = module:depends"pep";
+	assert(pep_plus.get_pep_service, "Wrong version of mod_pep loaded, you need to update Prosody");
 end
 
 local storage = module:open_store();