Should fix #25

This commit is contained in:
SmallJoker 2016-12-04 10:06:14 +01:00 committed by HybridDog
parent da6a4b3361
commit c72f56068f
1 changed files with 2 additions and 2 deletions

View File

@ -103,9 +103,8 @@ do
--Create config file.
return
end
io.close(file)
config = {}
for line in io.lines(path) do
for line in file:lines() do
if line:sub(1,1) ~= "#" then
local i, v = line:match("^(%S*) = (%S*)")
if i and v then
@ -113,6 +112,7 @@ do
end
end
end
io.close(file)
end
if config then