aboutsummaryrefslogtreecommitdiffstats
path: root/util/dependencies.lua
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2011-04-05 13:20:09 +0100
committerMatthew Wild <mwild1@gmail.com>2011-04-05 13:20:09 +0100
commitebb9c9d5859f51592930c012d1da82b1dd294b5c (patch)
tree3fb9f84164b0ff704cbac11569db98ad1b2b10ed /util/dependencies.lua
parent0e4599d1b5f5adec0105017c7fd0b63d63a132da (diff)
downloadprosody-ebb9c9d5859f51592930c012d1da82b1dd294b5c.tar.gz
prosody-ebb9c9d5859f51592930c012d1da82b1dd294b5c.zip
util.dependencies: Add a dummy util.ztact loader to log a message for people still using it (e.g. in their Debian-derived config files)
Diffstat (limited to 'util/dependencies.lua')
-rw-r--r--util/dependencies.lua13
1 files changed, 13 insertions, 0 deletions
diff --git a/util/dependencies.lua b/util/dependencies.lua
index 9371521c..5baea942 100644
--- a/util/dependencies.lua
+++ b/util/dependencies.lua
@@ -35,6 +35,19 @@ function missingdep(name, sources, msg)
print("");
end
+-- COMPAT w/pre-0.8 Debian: The Debian config file used to use
+-- util.ztact, which has been removed from Prosody in 0.8. This
+-- is to log an error for people who still use it, so they can
+-- update their configs.
+package.preload["util.ztact"] = function ()
+ if not package.loaded["core.loggingmanager"] then
+ error("util.ztact has been removed from Prosody and you need to fix your config "
+ .."file. More information can be found at http://prosody.im/doc/packagers#ztact", 0);
+ else
+ error("module 'util.ztact' has been deprecated in Prosody 0.8.");
+ end
+end;
+
function check_dependencies()
local fatal;