it was all a lua syntax error. good grief. that should go to stderr!

This commit is contained in:
Enno Rehling 2016-02-09 18:30:42 +01:00
parent 50f22d7c2f
commit 3ee023cdd6
1 changed files with 4 additions and 2 deletions

View File

@ -60,7 +60,7 @@ local function write_emails(locales)
end end
local function join_path(a, b) local function join_path(a, b)
if a then return a .. '/' .. b if a then return a .. '/' .. b end
return b return b
end end
@ -99,8 +99,10 @@ local function write_htpasswd()
local out = io.open(join_path(config.basepath, "htpasswd"), "w") local out = io.open(join_path(config.basepath, "htpasswd"), "w")
if out then if out then
for f in factions() do for f in factions() do
if f.password then
out:write(itoa36(f.id) .. ":" .. f.password .. "\n") out:write(itoa36(f.id) .. ":" .. f.password .. "\n")
end end
end
out:close() out:close()
end end
end end