From 6af05997b7a2046694c10c9a22f6fd8b0c3ccabf Mon Sep 17 00:00:00 2001 From: plugd Date: Thu, 15 Aug 2024 15:31:45 +0200 Subject: [PATCH] Fixed subject space deletion bug --- qwikboard | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/qwikboard b/qwikboard index 6724dfb..2a9de2b 100755 --- a/qwikboard +++ b/qwikboard @@ -304,10 +304,10 @@ function qwk.process_reply(mf, user_name) local conf_num = tonumber(mf:read(7)) msg.date = mf:read(8) msg.time = mf:read(5) - msg.to = string.lower(string.gsub(mf:read(25), " ", "")) + msg.to = string.lower(string.gsub(mf:read(25), " *$", "")) mf:read(25) -- take user name from provided user name instead msg.from = string.lower(string.sub(user_name, 1, 25)) - msg.subject = string.gsub(mf:read(25), " ", "") + msg.subject = string.gsub(mf:read(25), " *$", "") mf:read(12) -- Password (unused) msg.replyto = tonumber(mf:read(8)) @@ -330,12 +330,6 @@ function qwk.process_reply(mf, user_name) append_new_msg(conf_num, msg) print("Processed message for conference " .. qb.conferences[conf_num+1] .. ".") - - -- print("Message{") - -- for k,v in pairs(msg) do - -- print("\t" .. k .. "=\'" .. v .. "',") - -- end - -- print("}") end --- Commands --- -- 2.20.1