Software /
code /
prosody
Comparison
util/dependencies.lua @ 12569:b5d9f1829b15
util.dependencies: Deprecate support for Lua 5.1, this is your final warning
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Thu, 30 Jun 2022 17:03:50 +0200 |
parent | 12331:49739369dcad |
child | 12572:35a9ed6b7896 |
comparison
equal
deleted
inserted
replaced
12568:fc6213104d78 | 12569:b5d9f1829b15 |
---|---|
153 | 153 |
154 local function log_warnings() | 154 local function log_warnings() |
155 if _VERSION > "Lua 5.4" then | 155 if _VERSION > "Lua 5.4" then |
156 prosody.log("warn", "Support for %s is experimental, please report any issues", _VERSION); | 156 prosody.log("warn", "Support for %s is experimental, please report any issues", _VERSION); |
157 elseif _VERSION < "Lua 5.2" then | 157 elseif _VERSION < "Lua 5.2" then |
158 prosody.log("warn", "%s has several issues and support is being phased out, consider upgrading", _VERSION); | 158 prosody.log("warn", "%s support is deprecated, upgrade as soon as possible", _VERSION); |
159 end | 159 end |
160 local ssl = softreq"ssl"; | 160 local ssl = softreq"ssl"; |
161 if ssl then | 161 if ssl then |
162 local major, minor, veryminor, patched = ssl._VERSION:match("(%d+)%.(%d+)%.?(%d*)(M?)"); | 162 local major, minor, veryminor, patched = ssl._VERSION:match("(%d+)%.(%d+)%.?(%d*)(M?)"); |
163 if not major or ((tonumber(major) == 0 and (tonumber(minor) or 0) <= 3 and (tonumber(veryminor) or 0) <= 2) and patched ~= "M") then | 163 if not major or ((tonumber(major) == 0 and (tonumber(minor) or 0) <= 3 and (tonumber(veryminor) or 0) <= 2) and patched ~= "M") then |