Software / code / prosody
Comparison
core/modulemanager.lua @ 3878:c9de91c4173f
modulemanager, mod_console: Rename mod_console -> mod_admin_telnet - add compatibility code to modulemanager for existing configs
| author | Matthew Wild <mwild1@gmail.com> |
|---|---|
| date | Fri, 17 Dec 2010 12:44:24 +0000 |
| parent | 3801:ecb7f06c940c |
| child | 3967:1a9bcbaeb55a |
comparison
equal
deleted
inserted
replaced
| 3877:632f7038a67a | 3878:c9de91c4173f |
|---|---|
| 74 local global_modules = set.new(autoload_modules) + set.new(global_modules_enabled) - set.new(global_modules_disabled); | 74 local global_modules = set.new(autoload_modules) + set.new(global_modules_enabled) - set.new(global_modules_disabled); |
| 75 if component then | 75 if component then |
| 76 global_modules = set.intersection(set.new(component_inheritable_modules), global_modules); | 76 global_modules = set.intersection(set.new(component_inheritable_modules), global_modules); |
| 77 end | 77 end |
| 78 local modules = global_modules + host_modules; | 78 local modules = global_modules + host_modules; |
| 79 | |
| 80 -- COMPAT w/ pre 0.8 | |
| 81 if modules:contains("console") then | |
| 82 log("error", "The mod_console plugin has been renamed to mod_admin_telnet. Please update your config."); | |
| 83 modules:remove("console"); | |
| 84 modules:add("admin_telnet"); | |
| 85 end | |
| 79 | 86 |
| 80 if component then | 87 if component then |
| 81 load(host, component); | 88 load(host, component); |
| 82 end | 89 end |
| 83 for module in modules do | 90 for module in modules do |