aboutsummaryrefslogtreecommitdiffstats
path: root/util/xpcall.lua
blob: 852df03cf85700258f9c057f029f89116d24973a (plain)
1
2
3
4
5
6
7
8
9
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;
};