File

util/xpcall.lua @ 13541:3dc3781d02cd

mod_authz_internal: Hint at roles for external JIDs being read-only Roles for JIDs outside the current host are derived from configuration only with this module.
author Kim Alvefur <zash@zash.se>
date Fri, 01 Nov 2024 13:08:35 +0100
parent 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"prosody.util.compat".xpcall;
end

return {
	xpcall = xpcall;
};