Skip to content
Snippets Groups Projects
Commit 60225be7 authored by sapier's avatar sapier Committed by PilzAdam
Browse files

Fix Bug in modname guessing resulting in undefined modname

parent 07fb257c
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment