Software /
code /
prosody
File
util/xpcall.lua @ 13540:cc67109ce502
mod_admin_shell: Allow assigning roles to arbitrary JIDs when supported
mod_authz_internal does not support this
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Fri, 01 Nov 2024 13:07:25 +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; };