From 30a11784a92172caeb3049a7869939b0b6f8abc4 Mon Sep 17 00:00:00 2001 From: Athozus Date: Sat, 11 Mar 2023 14:18:13 +0100 Subject: [PATCH] Use builtin split func Co-authored-by: SX <50966843+S-S-X@users.noreply.github.com> --- util/normalize.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/util/normalize.lua b/util/normalize.lua index 52eeab8..8d09399 100644 --- a/util/normalize.lua +++ b/util/normalize.lua @@ -7,7 +7,7 @@ and add individual player names to recipient list function mail.normalize_players_and_add_recipients(field, recipients, undeliverable) local order = mail.parse_player_list(field) 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 else -- in case of playerˇ if not minetest.player_exists(recipient_name) then