Skip to content
Snippets Groups Projects
Commit 19667493 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 c72a0995
No related branches found
No related tags found
No related merge requests found
......@@ -7,8 +7,7 @@ var frame,
inputLine,
oneliners,
inInput = false,
attr = console.attributes,
status = bbs.sys_status;
attr = console.attributes;
var initFrames = function() {
......@@ -135,6 +134,7 @@ var initJSON = function() {
}
var init = function() {
js.on_exit("bbs.sys_status = " + bbs.sys_status);
bbs.sys_status |= SS_MOFF;
initFrames();
initInput();
......@@ -245,7 +245,6 @@ var cleanUp = function() {
}
frame.close();
console.clear(attr);
bbs.sys_status = status;
}
init();
......
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