fix mail.ensure_new_format() (had lead to wrong TO field when using Reply All), remove player from CC when using Reply All

This commit is contained in:
Peter Nerlich 2020-08-15 14:44:25 +02:00
parent 93d1af947c
commit 0d937711aa
2 changed files with 16 additions and 4 deletions

View file

@ -49,8 +49,8 @@ function mail.player_in_list(name, list)
end
function mail.ensure_new_format(message)
if message.sender then
function mail.ensure_new_format(message, name)
if message.to == nil then
message.to = name
end
end