From: plugd Date: Thu, 15 Aug 2024 20:13:33 +0000 (+0200) Subject: No error if nncp_users.lua doesn't exist. X-Git-Url: https://thelambdalab.xyz/gitweb/index.cgi?a=commitdiff_plain;h=fee21f8766a9108680ce1283516231ad3b494cbc;p=qwikboard.git No error if nncp_users.lua doesn't exist. --- diff --git a/qwikboard b/qwikboard index 2da9e31..f309337 100755 --- a/qwikboard +++ b/qwikboard @@ -396,8 +396,6 @@ function cmd.init () fs.touch(qb.path .. "/notices/hello") fs.touch(qb.path .. "/notices/news") fs.touch(qb.path .. "/notices/goodbye") - - fs.touch(qb.path .. "/nncp_users.lua") end -- qwkout: generate QWK file @@ -436,7 +434,9 @@ end local function restore_nncp_usernames() nncp_usernames = {} - dofile(qb.path .. "/nncp_users.lua") + if fs.exists(qb.path .. "/nncp_users.lua") then + dofile(qb.path .. "/nncp_users.lua") + end end local function store_nncp_usernames()