From: sapier Date: Wed, 17 Jul 2013 19:04:17 +0000 (+0200) Subject: Fix Bug in modname guessing resulting in undefined modname X-Git-Url: http://81.2.79.47:8989/gitweb/?a=commitdiff_plain;h=60225be7fa8418528002c5618795ee0f8d3512eb;p=zefram%2Fminetest%2Fminetest_engine.git Fix Bug in modname guessing resulting in undefined modname --- diff --git a/builtin/modmgr.lua b/builtin/modmgr.lua index bf71d8b1..3256c3b9 100644 --- a/builtin/modmgr.lua +++ b/builtin/modmgr.lua @@ -151,7 +151,11 @@ function modmgr.parse_register_line(line) local pos3 = item:find(":") if pos3 ~= nil then - return item:sub(1,pos3-1) + local retval = item:sub(1,pos3-1) + if retval ~= nil and + retval ~= "" then + return retval + end end end end