Skip to content
Snippets Groups Projects
Commit 8f7a2c32 authored by Rob Swindell's avatar Rob Swindell :speech_balloon:
Browse files

Back-up auto-messages (5, by default) when saving a new one

parent b3874f89
No related branches found
No related tags found
1 merge request!463MRC mods by Codefenix (2024-10-20)
......@@ -8,6 +8,7 @@
// user_fmt
// line_fmt
// max_line_len
// backup_level
"use strict";
......@@ -62,6 +63,8 @@ function automsg()
if(!console.noyes(bbs.text(AnonymousQ)))
anon = true;
}
if(options.backup_level !== 0)
file_backup(automsg, options.backup_level);
var file = new File(automsg);
if(!file.open("w")) {
alert("Error " + file.error + " opening " + file.name);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment