view util/xpcall.lua @ 14100:7fd6feb86dbe 13.0

mod_turn_external: hand out credentials for type == turns too Fixes 12283:b5686debb497
author Mike Yuan <me@yhndnzj.com>
date Thu, 20 Nov 2025 10:04:06 +0100
parents d10957394a3c
children
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;
};