view util/xpcall.lua @ 13725:c51140dfbc4e 13.0

mod_invites: Fix storing --group (thanks lissine) This made it ignore `--group` completely, but if you incorrectly used `--group foo` it would store `groups=true`. Introduced in 9ba11ef91ce4
author Kim Alvefur <zash@zash.se>
date Mon, 17 Feb 2025 00:55:27 +0100
parents d10957394a3c
children
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;
};