From 5e37bb06d79ef3adcd6545572382ae8ed220b50e Mon Sep 17 00:00:00 2001 From: Rob Swindell <rob@synchro.net> Date: Thu, 24 Dec 2020 18:40:39 -0800 Subject: [PATCH] Don't prompt to send application netmail to same address twice in a row This repetition would happen when the hub's address was the same as their 'fido' key value. --- exec/init-fidonet.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/exec/init-fidonet.js b/exec/init-fidonet.js index 8f93b89a19..379fe7cac7 100644 --- a/exec/init-fidonet.js +++ b/exec/init-fidonet.js @@ -800,7 +800,8 @@ if(your.node === temp_node) { } if(aborted() || confirm("Come back when you have a permanently-assigned node address")) exit(0); - } else if(network.fido && confirm("Send a node number application to " + network.fido)) { + } else if(network.fido && network.fido != fidoaddr.to_str(hub) + && confirm("Send a node number application to " + network.fido)) { var result = send_app_netmail(network.fido); if(typeof result !== 'boolean') { alert(result); -- GitLab