From 4b2a943799adedaa88eabe966ea698a94228a5d9 Mon Sep 17 00:00:00 2001 From: Athozus Date: Sat, 25 Mar 2023 11:53:33 +0100 Subject: [PATCH] Do not add maillist as a new contact when sending a mail --- gui.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gui.lua b/gui.lua index 852fe90..44e99d1 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:split("@")[1] == "" then -- in case of maillist + if recipient == "@" .. recipient:split("@")[1] then -- in case of maillist isNew = false else for _,contact in ipairs(contacts) do