File

util/xpcall.lua @ 9640:28d4b9d5a432 0.11

MUC: Fix traceback on muc#admin query with missing <item> child (#1242) Caused by a missing return statement introduced in 494938dec5d8
author Kim Alvefur <zash@zash.se>
date Sun, 25 Nov 2018 13:04:37 +0100
parent 9561:cfc7b2f7251e
child 12975:d10957394a3c
line wrap: on
line source

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