fixed sh/c so it only show this country's nodes
authorminima <minima>
Mon, 20 Jan 2003 13:35:28 +0000 (13:35 +0000)
committerminima <minima>
Mon, 20 Jan 2003 13:35:28 +0000 (13:35 +0000)
Changes
cmd/Aliases
cmd/Commands_en.hlp
cmd/show/configuration.pl

diff --git a/Changes b/Changes
index 56326ccab474bc4e1c9f34430f53322e9ccd703b..ecd431bfca602385bb17c053f808915595e1490f 100644 (file)
--- a/Changes
+++ b/Changes
@@ -1,3 +1,7 @@
+20Jan03=======================================================================
+1. changed sh/c so that, by default, it only shows the caller's country nodes
+sh/c all will show the old style full list. "sh/c sk gb" will show the config
+of all the GB and SK nodes.
 19Jan03=======================================================================
 1. I have made a fundemental change to the way PC19s are dealt with as a 
 result of the discussions on the mailing list. From now on, only nodes that
index 390864ff06f59086ba0964e7f6dfcc297b1bd664..1f7218f3e392a9b70b746e6f6152a650986594cb 100644 (file)
@@ -115,6 +115,7 @@ package CmdAlias;
        '^set$', 'apropos set', 'apropos',
          '^sho?w?/u$', 'show/user', 'show/user',
          '^sho?w?/bu', 'show/files bulletins', 'show/files',
+         '^sho?w?/c/a', 'show/configuration all', 'show/configuration',
          '^sho?w?/c/n', 'show/configuration nodes', 'show/configuration',
          '^sho?w?/c$', 'show/configuration', 'show/configuration',
          '^sho?w?/com', 'dbavail', 'dbavail',
index 5548afee56bc235af5ce9e5ccba0b594bedf1b48..1ed57e97428bb98a2609bd02fc85ca2fb3cfa2e1 100644 (file)
@@ -1699,8 +1699,23 @@ and the nodes to which they are connected.
 
 This command is normally abbreviated to: sh/c
 
+Normally, the list returned will be just for the nodes from your 
+country (because the list otherwise will be very long).
+
+  SH/C ALL 
+
+will produce a complete list of all nodes. 
+
 BE WARNED: the list that is returned can be VERY long
 
+It is possible to supply a node or part of a prefix and you will get 
+a list of the users for that node or list of nodes starting with
+that prefix.
+
+  SH/C GB7DJK
+
+  SH/C SK
+
 === 0^SHOW/CONFIGURATION/NODE^Show all the nodes connected locally
 Show all the nodes connected to this node.
 
index cb9f1946297d79179a720c10f675fb23016cc7ee..51c39dd07a8fa22733a429c69355cc26e498c561 100644 (file)
@@ -45,9 +45,19 @@ if ($list[0] && $list[0] =~ /^NOD/) {
                push @out, sprintf "%-12s %-12s %-12s %-12s %-12s %-12s", @l;
        }
 } else {
+       my $printall;
+       
+       $printall = 1 if @list && $list[0] =~ /^ALL/i;
+       
        # build up the screen from the Node table
        foreach $node (@nodes) {
-               next if scalar @list && !grep $node->call =~ /^$_/, @list;
+               unless ($printall) {
+                       if (@list) {
+                               next unless grep $node->call =~ /^$_/, @list;
+                       } else {
+                               next unless $node->dxcc == $self->dxcc;
+                       }
+               }
                my $call = $node->call;
                @l = ();
                $call ||= '???';