# HG changeset patch
# User Kim Alvefur <zash@zash.se>
# Date 1638137671 -3600
# Node ID 814b750aa2d08ae9810e09c54d329ed52eb2f8eb
# Parent  31f83a645ce6ce723f8f25783fe25402d2c6b0c6
util.dependencies: Discourage Lua 5.1

Search for 'Lua 5.1' for reasons.

diff -r 31f83a645ce6 -r 814b750aa2d0 util/dependencies.lua
--- a/util/dependencies.lua	Sun Nov 28 23:12:25 2021 +0100
+++ b/util/dependencies.lua	Sun Nov 28 23:14:31 2021 +0100
@@ -155,6 +155,8 @@
 local function log_warnings()
 	if _VERSION > "Lua 5.4" then
 		prosody.log("warn", "Support for %s is experimental, please report any issues", _VERSION);
+	elseif _VERSION < "Lua 5.2" then
+		prosody.log("warn", "%s has sevral issues and support is being phased out, consider upgrading", _VERSION);
 	end
 	local ssl = softreq"ssl";
 	if ssl then