mirror of
https://github.com/mt-mods/mail.git
synced 2025-03-15 06:01:25 +00:00
Fix nil player list concatenating
This commit is contained in:
parent
2694ffa2dc
commit
163467379f
1 changed files with 3 additions and 0 deletions
|
@ -60,6 +60,9 @@ end
|
||||||
|
|
||||||
function mail.concat_player_list(order)
|
function mail.concat_player_list(order)
|
||||||
-- turn list of players back into normalized string
|
-- turn list of players back into normalized string
|
||||||
|
if order == nil or #order == 0 then
|
||||||
|
return ""
|
||||||
|
end
|
||||||
return table.concat(order, ", ")
|
return table.concat(order, ", ")
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue