Changeset

10433:7777f25d5266 0.11

core.modulemanager: Disable mod_vcard if mod_vcard_legacy is enabled to prevent conflict (#1469)
author Kim Alvefur <zash@zash.se>
date Sat, 23 Nov 2019 23:11:03 +0100 (2019-11-23)
parents 10432:7b5a3de26f57
children 10434:8f709577fe8e 10436:0d702ec77f0c
files core/modulemanager.lua
diffstat 1 files changed, 5 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/core/modulemanager.lua	Sat Nov 23 23:10:39 2019 +0100
+++ b/core/modulemanager.lua	Sat Nov 23 23:11:03 2019 +0100
@@ -63,6 +63,11 @@
 		modules:add("admin_telnet");
 	end
 
+	if modules:contains("vcard") and modules:contains("vcard_legacy") then
+		log("error", "The mod_vcard_legacy plugin replaces mod_vcard but both are enabled. Please update your config.");
+		modules:remove("vcard");
+	end
+
 	return modules, component;
 end