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

New file transfer configuration sub menu script

To replace some copy/pasta in *.src (and later *.js shells)
parent ab8eca85
No related branches found
No related tags found
No related merge requests found
...@@ -796,54 +796,8 @@ cmdkey /* ...@@ -796,54 +796,8 @@ cmdkey /*
end_cmd end_cmd
cmdkey & cmdkey &
:xfercfg exec_bin "filescancfg"
compare_user_misc UM_expert end_cmd
if_false
menu xfercfg
end_if
async
print "\r\n\1y\1hConfig: \1n"
getcmd ?QBEP\r
logkey
cmdkey ?
compare_user_misc UM_expert
if_true
menu xfercfg
end_if
goto xfercfg
end_cmd
cmdkey P
file_ptrs_cfg
end_cmd
cmdkey B
crlf
toggle_user_misc UM_BATCHFLAG
compare_user_misc UM_BATCHFLAG
print "Batch flagging in file listings is now: \1h"
if_true
print "ON"
else
print "OFF"
end_if
crlf
end_cmd
cmdkey E
crlf
toggle_user_misc UM_EXTDESC
compare_user_misc UM_EXTDESC
print "Extended file description display is now: \1h"
if_true
print "ON"
else
print "OFF"
end_if
crlf
end_cmd
end_cmd
cmdkey # cmdkey #
print "\r\n\1c\1hType the actual number, not the symbol.\r\n" print "\r\n\1c\1hType the actual number, not the symbol.\r\n"
......
// File Scan Configuration menu
require("sbbsdefs.js", "USER_EXPERT");
"use strict";
const menufile = "xfercfg";
while(bbs.online && !js.terminated) {
if(!(user.settings & USER_EXPERT))
bbs.menu(menufile);
bbs.nodesync();
console.print("\r\n\x01y\x01hConfig: \x01n");
var key = console.getkeys("?QBEP\r");
bbs.log_key(key);
switch(key) {
case '?':
if(user.settings & USER_EXPERT)
bbs.menu(menufile);
continue;
case 'P':
var val = bbs.get_newscantime(bbs.new_file_time);
if(val !== null)
bbs.new_file_time = val;
break;
case 'B':
user.settings ^= USER_BATCHFLAG;
console.print("\r\nBatch flagging in file listings is now: \1h");
if(user.settings & USER_BATCHFLAG)
console.print("ON");
else
console.print("OFF");
console.crlf();
break;
case 'E':
user.settings ^= USER_EXTDESC;
console.print("\r\nExtended file description display is now: \1h");
if(user.settings & USER_EXTDESC)
console.print("ON");
else
console.print("OFF");
console.crlf();
break;
}
break;
}
...@@ -610,32 +610,8 @@ cmdkey /* ...@@ -610,32 +610,8 @@ cmdkey /*
end_cmd end_cmd
cmdkey T cmdkey T
:xfercfg exec_bin "filescancfg"
compare_ars expert end_cmd
if_false
menu XFERCFG
end_if
async
print "\r\n\x01y\x01hConfig: \x01n"
getcmd ?QBP\r
logkey
cmdkey ?
compare_ars expert
if_true
menu XFERCFG
end_if
goto xfercfg
end_cmd
cmdkey P
file_ptrs_cfg
end_cmd
cmdkey B
toggle_user_misc UM_BATCHFLAG
end_cmd
end_cmd
cmdkey # cmdkey #
print "\r\n\x01c\x01hType the actual number, not the symbol.\r\n" print "\r\n\x01c\x01hType the actual number, not the symbol.\r\n"
......
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