Fix incorrect usage of msg.content.

This commit is contained in:
Auke Kok 2019-08-29 09:06:03 -07:00
parent 047ef1b578
commit f957f1cab9
2 changed files with 21 additions and 5 deletions

View File

@ -409,8 +409,15 @@ local function grant_perks(box_id, boxes)
to = builder,
from = "sofar",
subject = "Congratulations! You've been awarded a perk!",
content = "Dear player,\n \nWe really appreciate the hard work you put in building boxes.\n \n" ..
"As a thank you, you have been granted the \"zoom\" perk!\n \n--sofar"
content = {
"Dear player,",
" ",
"We really appreciate the hard work you put in building boxes.",
" ",
"As a thank you, you have been granted the \"zoom\" perk!",
" ",
"--sofar"
}
})
end
end
@ -425,9 +432,17 @@ local function grant_perks(box_id, boxes)
to = builder,
from = "sofar",
subject = "Congratulations! You've been awarded a perk!",
content = "Dear player,\n \nWe really appreciate the enormous amount of hard work you put in building boxes.\n \n" ..
"Five boxes is an amazing milestone, and we are truly thankful for it.\n \n" ..
"As a thank you, you have been granted the \"sprint\" perk!\n \n--sofar"
content = {
"Dear player,",
" ",
"We really appreciate the hard work you put in building boxes.",
" ",
"Five boxes is an amazing milestone, and we are truly thankful for it.",
" ",
"As a thank you, you have been granted the \"sprint\" perk!",
" ",
"--sofar"
}
})
end
end

View File

@ -200,6 +200,7 @@ function telex.send(msg)
assert(msg.to)
assert(msg.subject)
assert(msg.content)
assert(type(msg.content) == "table")
local msgid = telex.msgid()
telex.save_msg(msgid, msg)