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

Fix TypeError: obj is not an object

Reported by Night Stalker (INTERNAL)
Most likely some unexpected content in sbbsecho.ini.
parent b3a87234
No related branches found
No related tags found
1 merge request!463MRC mods by Codefenix (2024-10-20)
...@@ -51,6 +51,7 @@ function TickITCfg() { ...@@ -51,6 +51,7 @@ function TickITCfg() {
function lcprops(obj) function lcprops(obj)
{ {
if(typeof obj == 'object') {
var i; var i;
var keys = Object.keys(obj); var keys = Object.keys(obj);
...@@ -64,6 +65,7 @@ function TickITCfg() { ...@@ -64,6 +65,7 @@ function TickITCfg() {
} }
} }
} }
}
if (!tcfg.open(tcfg.exists ? "r" : "w+")) if (!tcfg.open(tcfg.exists ? "r" : "w+"))
throw new Error(tcfg.error + " (" + strerror(tcfg.error) + ") opening '" + tcfg.name + "'"); throw new Error(tcfg.error + " (" + strerror(tcfg.error) + ") opening '" + tcfg.name + "'");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment