From: Loïc Blot Date: Tue, 28 Mar 2017 12:50:17 +0000 (+0200) Subject: Fix a type bug in colorize function X-Git-Tag: 0.4.16~345 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=1b299b40391b4ea0fe058b63aad14e3360e917d9;p=oweals%2Fminetest.git Fix a type bug in colorize function This bug was introduced by dd2f1d7551bfd70357ad4f3fb180704194272147 and reported by @kilbith --- diff --git a/builtin/common/misc_helpers.lua b/builtin/common/misc_helpers.lua index 1d5b51fc6..cf76fbde9 100644 --- a/builtin/common/misc_helpers.lua +++ b/builtin/common/misc_helpers.lua @@ -667,7 +667,7 @@ else end function core.colorize(color, message) - local lines = message:split("\n", true) + local lines = tostring(message):split("\n", true) local color_code = core.get_color_escape_sequence(color) for i, line in ipairs(lines) do