Skip to content
Snippets Groups Projects
Commit 20bb78ef authored by rswindell's avatar rswindell
Browse files

Allow filename argument to "EDIT" string command.

parent 660e0725
No related branches found
No related tags found
No related merge requests found
......@@ -122,12 +122,10 @@ function str_cmds(str)
if(str=="HELP")
writeln("EDIT\tEdits a specified file using your message editor.");
if(str=="EDIT") {
if(word=="EDIT") {
if(bbs.check_syspass()) {
write(bbs.text(Filename));
if((str=console.getstr("",60))!=null) {
console.editfile(str);
}
str=str.substr(4);
console.editfile(get_filename(str));
}
}
......
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