Skip to content

Commit

Permalink
Add check for mailing list nil description (fix #112)
Browse files Browse the repository at this point in the history
  • Loading branch information
Athozus committed Oct 16, 2023
1 parent 80ae9c3 commit 7754e7e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ui/maillists.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 7754e7e

Please sign in to comment.