mirror of
https://github.com/mt-mods/mail.git
synced 2025-07-05 22:20:37 -04:00
Check maillists not added in contacts
This commit is contained in:
parent
f93be5818a
commit
e08238f50e
1 changed files with 1 additions and 1 deletions
2
gui.lua
2
gui.lua
|
@ -705,7 +705,7 @@ function mail.handle_receivefields(player, formname, fields)
|
|||
local recipients = mail.parse_player_list(fields.to)
|
||||
local isNew = true
|
||||
for _,recipient in ipairs(recipients) do
|
||||
if recipient == "@" .. recipient:split("@")[1] then -- in case of maillist
|
||||
if recipient:sub(1,1) == "@" then -- in case of maillist -- check if first char is @
|
||||
isNew = false
|
||||
else
|
||||
for _,contact in ipairs(contacts) do
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue