mirror of
https://github.com/mt-mods/mail.git
synced 2025-03-15 06:01: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] = ","
|
||||
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] = "..."
|
||||
else
|
||||
|
|
Loading…
Add table
Reference in a new issue