mirror of
https://github.com/bjc/prosody.git
synced 2025-04-01 20:27:39 +03:00
9 lines
195 B
Lua
9 lines
195 B
Lua
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;
|
|
};
|