util/xpcall.lua
author Kim Alvefur <zash@zash.se>
Sat, 24 Feb 2024 14:35:17 +0100
changeset 13447 98a6ec4ce140
parent 12979 d10957394a3c
permissions -rw-r--r--
mod_cron: Fix log format to account for float that was integer before

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