check field arg for nil

This commit is contained in:
Buckaroo Banzai 2020-10-30 15:04:18 +01:00 committed by GitHub
parent 6537d205d4
commit 0f1b3c6260
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -14,6 +14,10 @@ end
function mail.parse_player_list(field)
if not field then
return {}
end
local separator = ", "
local pattern = "([^" .. separator .. "]+)"