From a07af93661b8024f8154888516e33d3a352b5dc7 Mon Sep 17 00:00:00 2001 From: Rob Swindell <rob@synchro.net> Date: Mon, 4 Jan 2021 11:14:48 -0800 Subject: [PATCH] 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. :-( --- exec/email_sec.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/exec/email_sec.js b/exec/email_sec.js index 3fdd938353..9fecf95382 100644 --- a/exec/email_sec.js +++ b/exec/email_sec.js @@ -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); -- GitLab