Software /
code /
prosody
File
util/xpcall.lua @ 9703:0cfb7b3593eb 0.11
MUC: Fix traceback when requesting voice (fixes #1269) (thanks jonas’)
Introduced by change from add_child to add_direct_child in ce57c69a20e2
Why does add_direct_child not return self like everything else?
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Sat, 15 Dec 2018 11:55:27 +0100 |
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; };