Software /
code /
prosody
File
util/xpcall.lua @ 13528:c228f1ffb7b3 0.12
mod_admin_adhoc: Fix log messages for reloading modules.
Also rename for loop item so that it doesn't shadow module variable.
author | Aidan Epstein <aidan@jmad.org> |
---|---|
date | Sun, 29 Sep 2024 18:09:17 -0700 |
parent | 9561:cfc7b2f7251e |
child | 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"util.compat".xpcall; end return { xpcall = xpcall; };