Software /
code /
prosody
File
util/xpcall.lua @ 13036:1612c7f7dd55
mod_admin_shell: More dynamic widths calculations
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Fri, 07 Apr 2023 12:48:17 +0200 (23 months ago) |
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; };