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

Some old stil (SBL) messages might include 'address' before 'network'?

Attempt to address error reported by Manitoo in IRC:
JavaScript sbbslist.js line 327: TypeError: bbs.network[network] is undefined

Normally, the "address:" key would always follow a "network:" key, but maybe
there's a corrupted message or the sysop is trying to import from the wrong
message base (not syncdata?).
parent 3bca2420
Branches
Tags
1 merge request!455Update branch with changes from master
......@@ -324,7 +324,8 @@ function import_entry(name, text)
bbs.network[network] = {name: match[2]};
break;
case 'address':
bbs.network[network].address = match[2];
if(bbs.network[network] !== undefined)
bbs.network[network].address = match[2];
break;
case 'terminal':
if(bbs.terminal.types.length)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment