From 7f3ed18cdcd07c8196f73d03df74609d07e0ae08 Mon Sep 17 00:00:00 2001 From: rswindell <> Date: Tue, 28 Apr 2020 00:50:18 +0000 Subject: [PATCH] Fix issue with numeric passwords. Also, if a node has areafix=false in sbbsecho.ini, don't let it use tickfix either. --- exec/tickfix.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/exec/tickfix.js b/exec/tickfix.js index dbda94b09d..a51f327e86 100644 --- a/exec/tickfix.js +++ b/exec/tickfix.js @@ -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; } -- GitLab