util/xpcall.lua
author Kim Alvefur <zash@zash.se>
Sat, 31 Aug 2019 16:08:45 +0200
branch0.11
changeset 10234 dd7e924c74ef
parent 9564 cfc7b2f7251e
child 12979 d10957394a3c
permissions -rw-r--r--
MUC: Fix delay@from to be room JID (fixes #1416)

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;
};