mirror of
https://github.com/mt-mods/mail.git
synced 2025-07-05 14:10:31 -04:00
Harmonize function names with snake case
This commit is contained in:
parent
6f7ccc77bd
commit
1c5e4b6cd6
9 changed files with 19 additions and 19 deletions
6
api.lua
6
api.lua
|
@ -34,14 +34,14 @@ function mail.send(m)
|
|||
-- normalize to, cc and bcc while compiling a list of all recipients
|
||||
local recipients = {}
|
||||
local undeliverable = {}
|
||||
m.to = mail.concat_player_list(mail.extractMaillists(m.to, m.from))
|
||||
m.to = mail.concat_player_list(mail.extract_maillists(m.to, m.from))
|
||||
m.to = mail.normalize_players_and_add_recipients(m.from, m.to, recipients, undeliverable)
|
||||
if m.cc then
|
||||
m.cc = mail.concat_player_list(mail.extractMaillists(m.cc, m.from))
|
||||
m.cc = mail.concat_player_list(mail.extract_maillists(m.cc, m.from))
|
||||
m.cc = mail.normalize_players_and_add_recipients(mail.from, m.cc, recipients, undeliverable)
|
||||
end
|
||||
if m.bcc then
|
||||
m.bcc = mail.concat_player_list(mail.extractMaillists(m.bcc, m.from))
|
||||
m.bcc = mail.concat_player_list(mail.extract_maillists(m.bcc, m.from))
|
||||
m.bcc = mail.normalize_players_and_add_recipients(m.from, m.bcc, recipients, undeliverable)
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue