--- Message database ---
function Message(msg)
- msgs[msg.number] = msg
+ msgs[msg_index] = msg
+ msg_index = msg_index + 1
end
+local function load_messages(conf_name)
+ msg_index = 1
+ msgs = {}
+ dofile(qb.path .. "/conferences/" .. conf_name .. ".msgs")
+end
+
+
local function get_next_msg_number(conf_num)
local msgnum_filename = qb.path .. "/conferences/" ..
qb.conferences[conf_num+1] .. ".next"
local fh = assert(io.open(output_file_name, "w"))
for cnum,cname in ipairs(qb.conferences) do
- msgs = {}
- dofile(qb.path .. "/conferences/" .. cname .. ".msgs")
+ -- msgs = {}
+ -- dofile(qb.path .. "/conferences/" .. cname .. ".msgs")
+ load_messages(cname)
for i,msg in ipairs(msgs) do
if string.match(string.lower(msg.from), "^%s*" .. string.lower(handle) .. "%s*$") then
fh:write("MessageArea: " .. cname .. "\n")
mf:write(space_pad("Produced by QWiKBoard.", 128))
for cnum,cname in ipairs(qb.conferences) do
- msgs = {}
- dofile(qb.path .. "/conferences/" .. cname .. ".msgs")
+ -- msgs = {}
+ -- dofile(qb.path .. "/conferences/" .. cname .. ".msgs")
+ load_messages(cname)
for i,msg in ipairs(msgs) do
pkt_msg_num = pkt_msg_num + 1