Skip to content

Commit

Permalink
protect against nil tags
Browse files Browse the repository at this point in the history
  • Loading branch information
Manason committed Dec 3, 2023
1 parent f2f0293 commit 340f9e2
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions server/logs.lua
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,11 @@ local allowedErr = {
local function logPayload(payload)
local tags

for i = 1, #payload.tags do
if not tags then tags = '' end
tags = tags .. payload.tags[i]
if payload.tags then
for i = 1, #payload.tags do
if not tags then tags = '' end
tags = tags .. payload.tags[i]
end
end

PerformHttpRequest(payload.webhook, function(err, _, headers)
Expand Down

0 comments on commit 340f9e2

Please sign in to comment.