Use builtin split func in storage.lua

This commit is contained in:
Athozus 2023-03-11 14:26:44 +01:00
parent 30a11784a9
commit a2b74be394
No known key found for this signature in database
GPG key ID: B50895022E8484BF
2 changed files with 7 additions and 7 deletions

View file

@ -702,7 +702,7 @@ function mail.handle_receivefields(player, formname, fields)
local recipients = mail.parse_player_list(fields.to)
local isNew = true
for r_,recipient in ipairs(recipients) do
if mail.split(recipient, "@")[1] == "" then -- in case of maillist
if recipient:split("@")[1] == "" then -- in case of maillist
isNew = false
else
for c_,contact in ipairs(contacts) do