aboutsummaryrefslogtreecommitdiffstats
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
commite4dcba964787f0939071e357ec9c10a980ad56e6 (patch)
tree10603b803c6fb2c7ba42e36aac264736031faf57
parent7ea98c6eb48a46e27efcc5e65516d95aaf1e314b (diff)
downloadprosody-e4dcba964787f0939071e357ec9c10a980ad56e6.tar.gz
prosody-e4dcba964787f0939071e357ec9c10a980ad56e6.zip
modulemanager, mod_console: Rename mod_console -> mod_admin_telnet - add compatibility code to modulemanager for existing configs
-rw-r--r--core/modulemanager.lua7
-rw-r--r--plugins/mod_admin_telnet.lua (renamed from plugins/mod_console.lua)0
2 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
diff --git a/plugins/mod_console.lua b/plugins/mod_admin_telnet.lua
index da40f57e..da40f57e 100644
--- a/plugins/mod_console.lua
+++ b/plugins/mod_admin_telnet.lua