Software / code / prosody
File
util/xpcall.lua @ 13578:5fb7b9a9346f
MUC: Use fully qualified import
Seems to be hard to break old habits?
Ref #1223
| author | Kim Alvefur <zash@zash.se> |
|---|---|
| date | Sat, 23 Nov 2024 17:43:43 +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; };