Fix incorrect usage of msg.content.
This commit is contained in:
parent
047ef1b578
commit
f957f1cab9
@ -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
|
||||
|
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user