mod_profile: Abort if mod_pep doesn't appear to be the former mod_pep_plus
authorKim Alvefur <zash@zash.se>
Thu, 02 Aug 2018 03:35:36 +0200
changeset 3212 e55172ce68d4
parent 3211 149cc5ddc64f
child 3213 5b02241a254e
mod_profile: Abort if mod_pep doesn't appear to be the former mod_pep_plus
mod_profile/mod_profile.lua
--- 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();