Software /
code /
prosody
File
util/xpcall.lua @ 13527:dba43269db5e
mod_invites_adhoc: Add password reset command
To support cases where the admin does not have easy access to the
command line to generate a password reset invite for someone who forgot
their password.
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Sun, 20 Oct 2024 12:11:21 +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; };