Software / code / prosody
Comparison
core/modulemanager.lua @ 13614:601ec2c19180
modulemanager: Handle multiple digits in Lua version number
Lua has a slow release cycle, but it would be nice if Prosody doesn't break
unnecessarily with 5.10 :)
| author | Matthew Wild <mwild1@gmail.com> |
|---|---|
| date | Thu, 09 Jan 2025 16:06:53 +0000 |
| parent | 13361:e20949a10118 |
| child | 13615:b03b5716e4cf |
comparison
equal
deleted
inserted
replaced
| 13613:9cd5b3484a1d | 13614:601ec2c19180 |
|---|---|
| 24 | 24 |
| 25 local xpcall = require "prosody.util.xpcall".xpcall; | 25 local xpcall = require "prosody.util.xpcall".xpcall; |
| 26 local debug_traceback = debug.traceback; | 26 local debug_traceback = debug.traceback; |
| 27 local setmetatable, rawget = setmetatable, rawget; | 27 local setmetatable, rawget = setmetatable, rawget; |
| 28 local ipairs, pairs, type, t_insert = ipairs, pairs, type, table.insert; | 28 local ipairs, pairs, type, t_insert = ipairs, pairs, type, table.insert; |
| 29 local lua_version = _VERSION:match("5%.%d$"); | 29 local lua_version = _VERSION:match("5%.%d+$"); |
| 30 | 30 |
| 31 local autoload_modules = { | 31 local autoload_modules = { |
| 32 prosody.platform, | 32 prosody.platform, |
| 33 "presence", | 33 "presence", |
| 34 "message", | 34 "message", |