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