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

Use proper method of saving/restoring bbs.sys_status.

If the script encountered an exception, the bbs.sys_status would be
left in "no message" mode, meaning no node messages or telegrams would
be automatically displayed to the user.
parent c530de98
No related branches found
No related tags found
1 merge request!463MRC mods by Codefenix (2024-10-20)
Pipeline #295 passed
...@@ -7,8 +7,7 @@ var frame, ...@@ -7,8 +7,7 @@ var frame,
inputLine, inputLine,
oneliners, oneliners,
inInput = false, inInput = false,
attr = console.attributes, attr = console.attributes;
status = bbs.sys_status;
var initFrames = function() { var initFrames = function() {
...@@ -135,6 +134,7 @@ var initJSON = function() { ...@@ -135,6 +134,7 @@ var initJSON = function() {
} }
var init = function() { var init = function() {
js.on_exit("bbs.sys_status = " + bbs.sys_status);
bbs.sys_status |= SS_MOFF; bbs.sys_status |= SS_MOFF;
initFrames(); initFrames();
initInput(); initInput();
...@@ -245,7 +245,6 @@ var cleanUp = function() { ...@@ -245,7 +245,6 @@ var cleanUp = function() {
} }
frame.close(); frame.close();
console.clear(attr); console.clear(attr);
bbs.sys_status = status;
} }
init(); init();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment