mirror of
https://github.com/mt-mods/mail.git
synced 2025-04-30 16:31:43 -04:00
Use builtin split func
Co-authored-by: SX <50966843+S-S-X@users.noreply.github.com>
This commit is contained in:
parent
03191fa406
commit
30a11784a9
1 changed files with 1 additions and 1 deletions
|
@ -7,7 +7,7 @@ and add individual player names to recipient list
|
||||||
function mail.normalize_players_and_add_recipients(field, recipients, undeliverable)
|
function mail.normalize_players_and_add_recipients(field, recipients, undeliverable)
|
||||||
local order = mail.parse_player_list(field)
|
local order = mail.parse_player_list(field)
|
||||||
for _, recipient_name in ipairs(order) do
|
for _, recipient_name in ipairs(order) do
|
||||||
if mail.split(recipient_name, "@")[1] == "" then -- in case of maillist
|
if recipient_name:split("@")[1] == "" then -- in case of maillist
|
||||||
recipients[recipient_name] = true
|
recipients[recipient_name] = true
|
||||||
else -- in case of playerˇ
|
else -- in case of playerˇ
|
||||||
if not minetest.player_exists(recipient_name) then
|
if not minetest.player_exists(recipient_name) then
|
||||||
|
|
Loading…
Add table
Reference in a new issue