mirror of
https://github.com/mt-mods/mail.git
synced 2025-07-04 21:50:28 -04:00
Use builtin split func in storage.lua
This commit is contained in:
parent
30a11784a9
commit
a2b74be394
2 changed files with 7 additions and 7 deletions
2
gui.lua
2
gui.lua
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue