Diff

core/modulemanager.lua @ 3758:41f174b61b6a

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 3677:dad563ed54aa
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