mirror of
https://github.com/mt-mods/mail.git
synced 2025-03-15 06:01:25 +00:00
check field arg for nil
This commit is contained in:
parent
6537d205d4
commit
0f1b3c6260
1 changed files with 4 additions and 0 deletions
|
@ -14,6 +14,10 @@ end
|
|||
|
||||
|
||||
function mail.parse_player_list(field)
|
||||
if not field then
|
||||
return {}
|
||||
end
|
||||
|
||||
local separator = ", "
|
||||
local pattern = "([^" .. separator .. "]+)"
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue