diff options
author | Matthew Wild <mwild1@gmail.com> | 2011-04-05 13:20:09 +0100 |
---|---|---|
committer | Matthew Wild <mwild1@gmail.com> | 2011-04-05 13:20:09 +0100 |
commit | ebb9c9d5859f51592930c012d1da82b1dd294b5c (patch) | |
tree | 3fb9f84164b0ff704cbac11569db98ad1b2b10ed | |
parent | 0e4599d1b5f5adec0105017c7fd0b63d63a132da (diff) | |
download | prosody-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)
-rw-r--r-- | util/dependencies.lua | 13 |
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; |