Skip to content

Commit 452bcf7

Browse files
committed
fix(server/hooks): don't add failed hook to results
1 parent c4dfba5 commit 452bcf7

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

modules/hooks/server.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,8 +75,6 @@ local function TriggerEventHooks(event, payload)
7575
shared.info(('Triggering event hook "%s".'):format(hook.hookId))
7676
end
7777

78-
result[#result + 1] = hook.hookId
79-
8078
if hook.__call then
8179
local start = microtime()
8280
local _, response = pcall(hook, payload)
@@ -95,6 +93,8 @@ local function TriggerEventHooks(event, payload)
9593
end
9694
end
9795

96+
result[#result + 1] = hook.hookId
97+
9898
::continue::
9999
end
100100
end

0 commit comments

Comments
 (0)