From 5a323437d7c460085779f5ac30e2d753a34720ad Mon Sep 17 00:00:00 2001 From: plugd Date: Mon, 12 Aug 2024 15:50:40 +0200 Subject: [PATCH] Get side of nncp_handler seems to execute. --- qwikboard | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/qwikboard b/qwikboard index f95f546..b4b0603 100755 --- a/qwikboard +++ b/qwikboard @@ -25,7 +25,8 @@ Here DIR is the path to the message board directory and COMMAND is one of: qwkout repin nncp_handler -]] + +Each command accepts different command-line arguments.]] qb = {} local function load_config () @@ -172,9 +173,7 @@ function qwk.build_qwk(user_name, qwk_filename) -- Create archive in outgoing - os.execute(qb.zip .. " -rj " .. - qb.path .. "/" .. qwk_filename .. - " " .. work_dir) + os.execute(qb.zip .. " -rj " .. qwk_filename .. " " .. work_dir) fs.rmdir(work_dir, true) end @@ -354,6 +353,7 @@ qb.conferences = { -- Ensure these point to zip and unzip on your system qb.zip = "/usr/bin/zip" qb.unzip = "/usr/bin/unzip" +qb.nncp_file = "/usr/bin/nncp-file" ]]) cf:close() @@ -455,9 +455,14 @@ exec: { -- Construct QWK packet local out_file_name = os.tmpname() + fs.rmfile(out_file_name) + local out_file_name = out_file_name .. ".qwk" + qwk.build_qwk(user_name, out_file_name) - os.execute(qb.nncp-file .. " " .. out_file_name .. + print(qb.nncp_file .. " " .. out_file_name .. " " .. + user_name .. ":" .. qb.bbsid .. ".QWK") + os.execute(qb.nncp_file .. " " .. out_file_name .. " " .. user_name .. ":" .. qb.bbsid .. ".QWK") fs.rmfile(out_file_name) -- 2.20.1