Changeset

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 3207:149cc5ddc64f
children 3209:5b02241a254e
files mod_profile/mod_profile.lua
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
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();