Diff

util/dependencies.lua @ 4238:05f991b4a90e

Merge 0.8->trunk
author Matthew Wild <mwild1@gmail.com>
date Tue, 05 Apr 2011 13:26:43 +0100
parent 4236:75ef9ea83b07
child 4426:ee65aa40ef60
line wrap: on
line diff
--- a/util/dependencies.lua	Fri Mar 18 10:33:38 2011 +0000
+++ b/util/dependencies.lua	Tue Apr 05 13:26:43 2011 +0100
@@ -35,6 +35,19 @@
 	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;