mirror of
https://github.com/TangentFoxy/lurker.git
synced 2025-07-28 11:02:18 +00:00
Prevent leaking of args to global scope
This commit is contained in:
@@ -64,7 +64,7 @@ end
|
|||||||
function lurker.initwrappers()
|
function lurker.initwrappers()
|
||||||
for _, v in pairs(lovecallbacknames) do
|
for _, v in pairs(lovecallbacknames) do
|
||||||
lurker.funcwrappers[v] = function(...)
|
lurker.funcwrappers[v] = function(...)
|
||||||
args = {...}
|
local args = {...}
|
||||||
xpcall(function()
|
xpcall(function()
|
||||||
return lurker.lovefuncs[v] and lurker.lovefuncs[v](unpack(args))
|
return lurker.lovefuncs[v] and lurker.lovefuncs[v](unpack(args))
|
||||||
end, lurker.onerror)
|
end, lurker.onerror)
|
||||||
|
Reference in New Issue
Block a user