mirror of
https://github.com/mt-mods/mail.git
synced 2025-07-07 15:10:37 -04:00
Do not add maillist as a new contact when sending a mail
This commit is contained in:
parent
615a102d85
commit
4b2a943799
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 recipients = mail.parse_player_list(fields.to)
|
||||||
local isNew = true
|
local isNew = true
|
||||||
for _,recipient in ipairs(recipients) do
|
for _,recipient in ipairs(recipients) do
|
||||||
if recipient:split("@")[1] == "" then -- in case of maillist
|
if recipient == "@" .. recipient:split("@")[1] then -- in case of maillist
|
||||||
isNew = false
|
isNew = false
|
||||||
else
|
else
|
||||||
for _,contact in ipairs(contacts) do
|
for _,contact in ipairs(contacts) do
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue