modulemanager, mod_console: Rename mod_console -> mod_admin_telnet - add compatibility code to modulemanager for existing configs

vault/0.11
Matthew Wild 16 years ago
parent c218f83032
commit f0f0886c0d
  1. 7
      core/modulemanager.lua
  2. 0
      plugins/mod_admin_telnet.lua

@ -77,6 +77,13 @@ function load_modules_for_host(host)
end
local modules = global_modules + host_modules;
-- COMPAT w/ pre 0.8
if modules:contains("console") then
log("error", "The mod_console plugin has been renamed to mod_admin_telnet. Please update your config.");
modules:remove("console");
modules:add("admin_telnet");
end
if component then
load(host, component);
end

Loading…
Cancel
Save