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

Mark passive (inactive) nodes with an exlamation mark to make them obvious

... in the linked node listing
parent afcf3975
No related branches found
No related tags found
1 merge request!455Update branch with changes from master
...@@ -924,7 +924,9 @@ int main(int argc, char **argv) ...@@ -924,7 +924,9 @@ int main(int argc, char **argv)
"of nodes, by using the `ALL` wildcard word.\n" "of nodes, by using the `ALL` wildcard word.\n"
"\n" "\n"
"The hexadecimal numbers in parentheses are provided as an aide when\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++) { for(u=0;u<cfg.nodecfgs;u++) {
...@@ -935,8 +937,9 @@ int main(int argc, char **argv) ...@@ -935,8 +937,9 @@ int main(int argc, char **argv)
else else
sprintf(hexaddr, "(.%03X)", cfg.nodecfg[u].addr.zone); 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 ,faddrtoa(&cfg.nodecfg[u].addr), hexaddr
,cfg.nodecfg[u].passive ? '!' : ' '
,cfg.nodecfg[u].name[0] ? cfg.nodecfg[u].name : cfg.nodecfg[u].comment); ,cfg.nodecfg[u].name[0] ? cfg.nodecfg[u].name : cfg.nodecfg[u].comment);
} }
opt[u][0]=0; opt[u][0]=0;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment