displayed to users by their offline mail reader when they open (hello)
and close (goodbye) mail packets. An additional file (news) contains
any board-wide news you'd like to distribute to your users.
+(You can remove any of these notice files if they're not relevant.)
Interacting with a message board
--------------------------------
posix.unlink(filename)
end
-function fs.copy(filename, destfilename)
+function fs.copy(filename, destfilename, skip_if_not_found)
+
+ if skip_if_not_found and not fs.exists(filename) then
+ return
+ end
+
src = assert(io.open(filename,"r"))
dest = assert(io.open(destfilename,"w"))
-- Copy BBS welcome, news and goodbye files
- fs.copy(qb.path .. "/notices/hello", work_dir .. "/HELLO")
- fs.copy(qb.path .. "/notices/news", work_dir .. "/NEWS")
- fs.copy(qb.path .. "/notices/goodbye", work_dir .. "/GOODBYE")
+ fs.copy(qb.path .. "/notices/hello", work_dir .. "/HELLO", true)
+ fs.copy(qb.path .. "/notices/news", work_dir .. "/NEWS", true)
+ fs.copy(qb.path .. "/notices/goodbye", work_dir .. "/GOODBYE", true)
-- Pack messages