Software /
code /
prosody
File
util/xpcall.lua @ 13481:1c87c0a7ece6
mod_blocklist: Check JID of mediated MUC invite sender against blocklist
This ensures that someone on your blocklist is unable to invite you to MUC
rooms.
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Mon, 22 Apr 2024 11:26:20 +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; };