Skip to content
Snippets Groups Projects
Commit 8449ce74 authored by deuce's avatar deuce
Browse files

Add support for .plan files, add a ;PLAN str command which should allow

editing of .plan files.
parent ab8e668d
Branches
Tags
No related merge requests found
......@@ -416,7 +416,12 @@ write(format("Last login %s %s\r\nvia %s from %s [%s]\r\n"
,u.connection
,u.host_name
,u.ip_address));
var plan;
plan=format("%suser/%04s.plan",system.data_dir,u.number);
if(file_exists(plan))
send_file(plan)
else
write("No plan.\r\n");
done();
/* End of fingerservice.js */
......@@ -612,6 +612,14 @@ function str_cmds(str)
if(str=="POFF") {
bbs.node_settings ^= NODE_POFF;
}
// Edit .plan
if(user.compare_ars("rest not G")) {
if(str=="PLAN") {
var plan=format("%suser/%04d.plan",system.data_dir,user.number);
console.editfile(plan);
}
}
}
//### Generic routine to ask user for parameter if one wasn't specified ###
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment