From fee21f8766a9108680ce1283516231ad3b494cbc Mon Sep 17 00:00:00 2001 From: plugd Date: Thu, 15 Aug 2024 22:13:33 +0200 Subject: [PATCH] No error if nncp_users.lua doesn't exist. --- qwikboard | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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() -- 2.20.1