From: plugd Date: Thu, 15 Aug 2024 13:31:45 +0000 (+0200) Subject: Fixed subject space deletion bug X-Git-Url: https://thelambdalab.xyz/gitweb/index.cgi?a=commitdiff_plain;h=6af05997b7a2046694c10c9a22f6fd8b0c3ccabf;p=qwikboard.git Fixed subject space deletion bug --- 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 ---