Skip to content
Snippets Groups Projects
Commit 7f3ed18c authored by rswindell's avatar rswindell
Browse files

Fix issue with numeric passwords.

Also, if a node has areafix=false in sbbsecho.ini, don't let it use tickfix
either.
parent a03ec406
Branches
Tags
No related merge requests found
......@@ -207,11 +207,15 @@ for(var i = 0; i < idx_list.length; i++) {
reply_to_msg(hdr, "Unknown node address: " + hdr.from_net_addr);
continue;
}
if(!node_map[hdr.from_net_addr].areafix) {
reply_to_msg(hdr, "AreaFix not enabled for node: " + hdr.from_net_addr);
continue;
}
if(!node_map[hdr.from_net_addr].areafixpwd) {
reply_to_msg(hdr, "No AreaFix password for node: " + hdr.from_net_addr);
continue;
}
if(hdr.subject.toLowerCase() != node_map[hdr.from_net_addr].areafixpwd.toLowerCase()) {
if(hdr.subject.toLowerCase() != String(node_map[hdr.from_net_addr].areafixpwd).toLowerCase()) {
reply_to_msg(hdr, "Wrong AreaFix password for node: " + hdr.from_net_addr);
continue;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment