From 5703276703f4773d8005f82b40694c34c9ed174b Mon Sep 17 00:00:00 2001
From: "Rob Swindell (on Debian Linux)" <rob@synchro.net>
Date: Fri, 20 Oct 2023 23:25:04 -0700
Subject: [PATCH] Mark passive (inactive) nodes with an exlamation mark to make
 them obvious

... in the linked node listing
---
 src/sbbs3/echocfg.c | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/src/sbbs3/echocfg.c b/src/sbbs3/echocfg.c
index d5a62b99b0..708a85e9b0 100644
--- a/src/sbbs3/echocfg.c
+++ b/src/sbbs3/echocfg.c
@@ -924,7 +924,9 @@ int main(int argc, char **argv)
 	"of nodes, by using the `ALL` wildcard word.\n"
 	"\n"
 	"The hexadecimal numbers in parentheses are provided as an aide when\n"
-	"correlating FidoNet files and BSO directories with node numbers."
+	"correlating FidoNet files and BSO directories with node numbers.\n"
+	"\n"
+	"An exclamation mark denotes passive (inactive) nodes.\n";
 	;
 
 					for(u=0;u<cfg.nodecfgs;u++) {
@@ -935,8 +937,9 @@ int main(int argc, char **argv)
 							else
 								sprintf(hexaddr, "(.%03X)", cfg.nodecfg[u].addr.zone);
 						}
-						snprintf(opt[u], MAX_OPLN-1, "%-16s %-10s  %s"
+						snprintf(opt[u], MAX_OPLN-1, "%-16s %-10s %c%s"
 							,faddrtoa(&cfg.nodecfg[u].addr), hexaddr
+							,cfg.nodecfg[u].passive ? '!' : ' '
 							,cfg.nodecfg[u].name[0] ? cfg.nodecfg[u].name : cfg.nodecfg[u].comment);
 					}
 					opt[u][0]=0;
-- 
GitLab