Software /
code /
prosody
File
util/xpcall.lua @ 13104:8c786880e28d
mod_admin_shell: Allow logging global events with debug:logevents("*")
Missing feature. It should behave like debug:events()
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Sun, 14 May 2023 19:01:01 +0200 |
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; };