Software /
code /
prosody
File
util/xpcall.lua @ 12821:a4ac16e5b655
sessionmanager: Fire event before retiring old session
This allows for modules to update fields, which is generally better than
maintaining this hard-coded list of transferable properties here.
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Thu, 29 Dec 2022 16:25:00 +0000 |
parent | 9561:cfc7b2f7251e |
child | 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"util.compat".xpcall; end return { xpcall = xpcall; };