From 3ee023cdd679e2346805afbe5916d6c5c001342f Mon Sep 17 00:00:00 2001 From: Enno Rehling Date: Tue, 9 Feb 2016 18:30:42 +0100 Subject: [PATCH] it was all a lua syntax error. good grief. that should go to stderr! --- scripts/run-turn.lua | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/scripts/run-turn.lua b/scripts/run-turn.lua index ebf6acfb7..20a8de05b 100644 --- a/scripts/run-turn.lua +++ b/scripts/run-turn.lua @@ -60,7 +60,7 @@ local function write_emails(locales) end local function join_path(a, b) - if a then return a .. '/' .. b + if a then return a .. '/' .. b end return b end @@ -99,7 +99,9 @@ local function write_htpasswd() local out = io.open(join_path(config.basepath, "htpasswd"), "w") if out then for f in factions() do - out:write(itoa36(f.id) .. ":" .. f.password .. "\n") + if f.password then + out:write(itoa36(f.id) .. ":" .. f.password .. "\n") + end end out:close() end