Skip to content
Snippets Groups Projects
Commit 5e52c22f authored by deuce's avatar deuce
Browse files

DOS sucks, but many people use DOS editors.

Stick with .pla all the time.

SYSOPS: Rename any data/user/*.plan to *.pla
(Or don't, nobody knows about ;plan anyways)
parent 9807d94e
Branches
Tags
No related merge requests found
......@@ -751,23 +751,15 @@ function str_cmds(str)
if(str=="HELP")
writeln("PLAN\tEdits or deletes your .plan file (displayed when somebody fingers you).");
if(str=="PLAN") {
var plan=format("%suser/%04d.plan",system.data_dir,user.number);
if(!file_exists(plan))
plan=format("%suser/%04d.pla",system.data_dir,user.number);
var plan=format("%suser/%04d.pla",system.data_dir,user.number);
if(file_exists(plan)) {
if(console.yesno("Display current .plan"))
console.printfile(plan);
if(!console.noyes("Delete current .plan"))
file_remove(plan);
}
else {
// When creating a NEW plan file, use .plan
plan=format("%suser/%04d.plan",system.data_dir,user.number);
}
if(console.yesno("Edit/Create .plan")) {
console.editfile(plan);
if(!file_exists(plan))
plan=format("%suser/%04d.pla",system.data_dir,user.number);
console.printfile(plan);
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment