core.modulemanager: Disable mod_vcard if mod_vcard_legacy is enabled to prevent conflict (#1469) 0.11
authorKim Alvefur <zash@zash.se>
Sat, 23 Nov 2019 23:11:03 +0100
branch0.11
changeset 10437 7777f25d5266
parent 10436 7b5a3de26f57
child 10438 8f709577fe8e
child 10440 0d702ec77f0c
core.modulemanager: Disable mod_vcard if mod_vcard_legacy is enabled to prevent conflict (#1469)
core/modulemanager.lua
--- 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