aboutsummaryrefslogtreecommitdiffstats
path: root/core/modulemanager.lua
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2010-12-17 12:44:24 +0000
committerMatthew Wild <mwild1@gmail.com>2010-12-17 12:44:24 +0000
commitf0f0886c0d8438a2245185b1ba63a38593ea3d2a (patch)
tree852b8af98b8f0664887e59c703316a90e20bc15f /core/modulemanager.lua
parentc218f83032dc79367f4ccadbe6515e7d68b985d0 (diff)
downloadprosody-f0f0886c0d8438a2245185b1ba63a38593ea3d2a.tar.gz
prosody-f0f0886c0d8438a2245185b1ba63a38593ea3d2a.zip
modulemanager, mod_console: Rename mod_console -> mod_admin_telnet - add compatibility code to modulemanager for existing configs
Diffstat (limited to 'core/modulemanager.lua')
-rw-r--r--core/modulemanager.lua7
1 files changed, 7 insertions, 0 deletions
diff --git a/core/modulemanager.lua b/core/modulemanager.lua
index b12cddf0..8928ce14 100644
--- a/core/modulemanager.lua
+++ b/core/modulemanager.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