Make sure not to concatenate nil if no wasn't passed.

This commit is contained in:
Auke Kok 2019-08-28 11:32:40 -07:00
parent b800889b7b
commit eb32e3dc0f

View File

@ -128,6 +128,10 @@ function telex.get(player, no)
return { "You have no messages." }
end
if not no then
return { "You didn't specify a message number." }
end
local msgid = mbox[no]
local msg = telex.get_msg(msgid)