Diff

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
line wrap: on
line diff
--- a/core/modulemanager.lua	Fri Dec 17 01:24:59 2010 +0000
+++ b/core/modulemanager.lua	Fri Dec 17 12:44:24 2010 +0000
@@ -77,6 +77,13 @@
 	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