Mercurial > prosody-hg
view util/xpcall.lua @ 11817:a67b4d4f8eef
mod_muc_mam: Merge main and RSM-specific log message into a single one
| author | Kim Alvefur <zash@zash.se> |
|---|---|
| date | Thu, 23 Sep 2021 15:53:39 +0200 |
| parents | cfc7b2f7251e |
| children | 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"util.compat".xpcall; end return { xpcall = xpcall; };
