Diff

core/modulemanager.lua @ 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
parent 9563:732314eb3258
child 10434:8f709577fe8e
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