File

util/xpcall.lua @ 13723:d7bf48d31374 13.0

util.prosodyctl.check: Recognise http_upload_external as a file upload service
author Matthew Wild <mwild1@gmail.com>
date Sun, 16 Feb 2025 14:19:16 +0000
parent 12975:d10957394a3c
line wrap: on
line source

local xpcall = xpcall;

if select(2, xpcall(function (x) return x end, function () end,  "test")) ~= "test" then
	xpcall = require"prosody.util.compat".xpcall;
end

return {
	xpcall = xpcall;
};