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

Use bbs.exec() to execute msglist.js instead of load() for on-exit clean-up

The on-exit handlers which restore the console and system flags back to their
previous states don't execute when load()'d from this script. Not sure why
(Deuce?) - using bbs.exec() as a work-around now. :-(
parent 946a35c2
No related branches found
No related tags found
No related merge requests found
......@@ -24,7 +24,7 @@ while(bbs.online && !console.aborted) {
var cmdkeys = "LSARUFNKQ?\r";
switch(console.getkeys(cmdkeys,K_UPPER)) {
case 'L': // List/read your mail
load({}, "msglist.js", "mail","-preview");
bbs.exec("?msglist.js mail -preview");
break;
case 'R': // Read your mail
bbs.read_mail(MAIL_YOUR, user.number);
......
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