Mercurial > prosody-hg
comparison util/dependencies.lua @ 11959:814b750aa2d0
util.dependencies: Discourage Lua 5.1
Search for 'Lua 5.1' for reasons.
| author | Kim Alvefur <zash@zash.se> |
|---|---|
| date | Sun, 28 Nov 2021 23:14:31 +0100 |
| parents | 31f83a645ce6 |
| children | d4730ae60226 |
comparison
equal
deleted
inserted
replaced
| 11958:31f83a645ce6 | 11959:814b750aa2d0 |
|---|---|
| 153 end | 153 end |
| 154 | 154 |
| 155 local function log_warnings() | 155 local function log_warnings() |
| 156 if _VERSION > "Lua 5.4" then | 156 if _VERSION > "Lua 5.4" then |
| 157 prosody.log("warn", "Support for %s is experimental, please report any issues", _VERSION); | 157 prosody.log("warn", "Support for %s is experimental, please report any issues", _VERSION); |
| 158 elseif _VERSION < "Lua 5.2" then | |
| 159 prosody.log("warn", "%s has sevral issues and support is being phased out, consider upgrading", _VERSION); | |
| 158 end | 160 end |
| 159 local ssl = softreq"ssl"; | 161 local ssl = softreq"ssl"; |
| 160 if ssl then | 162 if ssl then |
| 161 local major, minor, veryminor, patched = ssl._VERSION:match("(%d+)%.(%d+)%.?(%d*)(M?)"); | 163 local major, minor, veryminor, patched = ssl._VERSION:match("(%d+)%.(%d+)%.?(%d*)(M?)"); |
| 162 if not major or ((tonumber(major) == 0 and (tonumber(minor) or 0) <= 3 and (tonumber(veryminor) or 0) <= 2) and patched ~= "M") then | 164 if not major or ((tonumber(major) == 0 and (tonumber(minor) or 0) <= 3 and (tonumber(veryminor) or 0) <= 2) and patched ~= "M") then |
