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

A little clean-up, no functional change.

parent 005faa3d
Branches
Tags
1 merge request!463MRC mods by Codefenix (2024-10-20)
// $Id: syncdata.js,v 1.1 2018/01/17 02:45:48 rswindell Exp $
// Find the correct/full internal code for the "syncdata" sub-board: // Find the correct/full internal code for the "syncdata" sub-board:
"use strict;"
function find(code) function find(code)
{ {
if(!code) if(!code)
code = "syncdata"; code = "syncdata";
// Find the actual sub-code // Find the actual sub-code
var sub_code;
for(var s in msg_area.sub) { for(var s in msg_area.sub) {
var sub = msg_area.sub[s]; if(s.substr(-code.length).toLowerCase() == code)
if(sub.code.substr(-code.length).toLowerCase() == code) return s;
return sub.code;
} }
return false; return false;
} }
this; this;
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment