# HG changeset patch # User Kim Alvefur # Date 1533173736 -7200 # Node ID e55172ce68d4d7160f12b99a178d29753f784daa # Parent 149cc5ddc64fa633d1b3b84d67ebd218e70d39a9 mod_profile: Abort if mod_pep doesn't appear to be the former mod_pep_plus diff -r 149cc5ddc64f -r e55172ce68d4 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();