Skip to content

Commit

Permalink
Fix nil player list concatenating
Browse files Browse the repository at this point in the history
  • Loading branch information
Athozus committed Mar 22, 2024
1 parent 2694ffa commit 1634673
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions util/normalize.lua
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,9 @@ end

function mail.concat_player_list(order)
-- turn list of players back into normalized string
if order == nil or #order == 0 then
return ""
end
return table.concat(order, ", ")
end

Expand Down

0 comments on commit 1634673

Please sign in to comment.