X-Git-Url: http://gb7djk.dxcluster.net/gitweb/gitweb.cgi?a=blobdiff_plain;f=cmd%2Fshow%2Fnewconfiguration.pl;h=3093944266427f9be3d6d5dbe6bd2ebeef862f33;hb=8ce3e54056026253e9e4a518b317dbbd8e71bb7a;hp=516e448726f897c3c72efe44bedd8cb44e61811d;hpb=c3505bcfc922cd712bad2c20b3479cf8d1dc54fe;p=spider.git diff --git a/cmd/show/newconfiguration.pl b/cmd/show/newconfiguration.pl index 516e4487..30939442 100644 --- a/cmd/show/newconfiguration.pl +++ b/cmd/show/newconfiguration.pl @@ -9,13 +9,13 @@ my ($self, $line) = @_; my @list = map { uc } split /\s+/, $line; # list of callsigns of nodes my @out; -my $nodes_only; +my $nodes_only = 1; -if (@list && $list[0] =~ /^NOD/) { - $nodes_only++; +if (@list && $list[0] =~ /^USE/) { + $nodes_only = 0; shift @list; } -push @out, $main::routeroot->config($nodes_only, 0, {}, @list); +push @out, $main::routeroot->config($nodes_only, $self->width, 0, {}, @list); return (1, @out);