Software / code / prosody
Comparison
core/modulemanager.lua @ 12146:9c69c062d6b7
core.modulemanager: Remove compat for mod_console rename in 0.8
Should no longer be needed, especially since mod_admin_telnet morphed
into mod_admin_shell and mod_admin_socket
| author | Kim Alvefur <zash@zash.se> |
|---|---|
| date | Wed, 05 Jan 2022 04:04:45 +0100 |
| parent | 12079:76a5c0261793 |
| child | 12253:57d35fcde488 |
comparison
equal
deleted
inserted
replaced
| 12145:212bac94aedd | 12146:9c69c062d6b7 |
|---|---|
| 74 if component then | 74 if component then |
| 75 global_modules = set.intersection(set.new(component_inheritable_modules), global_modules); | 75 global_modules = set.intersection(set.new(component_inheritable_modules), global_modules); |
| 76 end | 76 end |
| 77 local modules = (global_modules + set.new(host_modules_enabled)) - set.new(host_modules_disabled); | 77 local modules = (global_modules + set.new(host_modules_enabled)) - set.new(host_modules_disabled); |
| 78 | 78 |
| 79 -- COMPAT w/ pre 0.8 | |
| 80 if modules:contains("console") then | |
| 81 log("error", "The mod_console plugin has been renamed to mod_admin_telnet. Please update your config."); | |
| 82 modules:remove("console"); | |
| 83 modules:add("admin_telnet"); | |
| 84 end | |
| 85 | |
| 86 if modules:contains("vcard") and modules:contains("vcard_legacy") then | 79 if modules:contains("vcard") and modules:contains("vcard_legacy") then |
| 87 log("error", "The mod_vcard_legacy plugin replaces mod_vcard but both are enabled. Please update your config."); | 80 log("error", "The mod_vcard_legacy plugin replaces mod_vcard but both are enabled. Please update your config."); |
| 88 modules:remove("vcard"); | 81 modules:remove("vcard"); |
| 89 end | 82 end |
| 90 | 83 |