From e08238f50ea299b4c9dd714f45be43002ce5dbcc Mon Sep 17 00:00:00 2001 From: Athozus Date: Sat, 25 Mar 2023 16:08:03 +0100 Subject: [PATCH] Check maillists not added in contacts --- gui.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gui.lua b/gui.lua index 44e99d1..7830136 100644 --- a/gui.lua +++ b/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