From ebb9c9d5859f51592930c012d1da82b1dd294b5c Mon Sep 17 00:00:00 2001 From: Matthew Wild Date: Tue, 5 Apr 2011 13:20:09 +0100 Subject: 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) --- util/dependencies.lua | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'util/dependencies.lua') 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; -- cgit v1.2.3