diff options
author | Kim Alvefur <zash@zash.se> | 2019-11-23 23:11:03 +0100 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2019-11-23 23:11:03 +0100 |
commit | 6a5c40e1cac89398fa56b15459ba3f1777889d85 (patch) | |
tree | 1710b2966656ecfc8dd9b9a33ffd59156654f777 /core | |
parent | 704b463d2995c6981c6a96e55ee4196f580f5ea6 (diff) | |
download | prosody-6a5c40e1cac89398fa56b15459ba3f1777889d85.tar.gz prosody-6a5c40e1cac89398fa56b15459ba3f1777889d85.zip |
core.modulemanager: Disable mod_vcard if mod_vcard_legacy is enabled to prevent conflict (#1469)
Diffstat (limited to 'core')
-rw-r--r-- | core/modulemanager.lua | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/core/modulemanager.lua b/core/modulemanager.lua index 17602459..a824d36a 100644 --- a/core/modulemanager.lua +++ b/core/modulemanager.lua @@ -63,6 +63,11 @@ local function get_modules_for_host(host) 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 |