mirror of
https://github.com/mt-mods/mail.git
synced 2025-03-20 16:41:25 +00:00
Add check for mailing list nil description (fix #112)
This commit is contained in:
parent
80ae9c3342
commit
7754e7e361
1 changed files with 1 additions and 1 deletions
|
@ -22,7 +22,7 @@ function mail.show_maillists(name)
|
||||||
formspec[#formspec + 1] = "@" .. minetest.formspec_escape(maillist.name)
|
formspec[#formspec + 1] = "@" .. minetest.formspec_escape(maillist.name)
|
||||||
formspec[#formspec + 1] = ","
|
formspec[#formspec + 1] = ","
|
||||||
if maillist.desc ~= "" then
|
if maillist.desc ~= "" then
|
||||||
if string.len(maillist.desc) > 30 then
|
if string.len(maillist.desc or "") > 30 then
|
||||||
formspec[#formspec + 1] = minetest.formspec_escape(string.sub(maillist.desc, 1, 27))
|
formspec[#formspec + 1] = minetest.formspec_escape(string.sub(maillist.desc, 1, 27))
|
||||||
formspec[#formspec + 1] = "..."
|
formspec[#formspec + 1] = "..."
|
||||||
else
|
else
|
||||||
|
|
Loading…
Add table
Reference in a new issue