Software /
code /
prosody
File
util/xpcall.lua @ 13096:9638ff8b1c81
mod_invites: Fix password reset invites
Caused by roles changing from table|nil to always table in c2616274bef7
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Sun, 07 May 2023 12:52:31 +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; };