mirror of https://github.com/bjc/prosody
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
10 lines
187 B
10 lines
187 B
|
7 years ago
|
local xpcall = xpcall;
|
||
|
|
|
||
|
|
if select(2, xpcall(function (x) return x end, function () end, "test")) ~= "test" then
|
||
|
|
xpcall = require"util.compat".xpcall;
|
||
|
|
end
|
||
|
|
|
||
|
|
return {
|
||
|
|
xpcall = xpcall;
|
||
|
|
};
|