projects
/
spider.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
make sure it's a row of 5 and not 4
[spider.git]
/
cmd
/
show
/
users.pl
diff --git
a/cmd/show/users.pl
b/cmd/show/users.pl
index f1aa6ca6926aa75ba2efad105fc421c81c2d047f..c9df4d6943a785545c1a66a6902f3c1c21f89003 100644
(file)
--- a/
cmd/show/users.pl
+++ b/
cmd/show/users.pl
@@
-28,16
+28,14
@@
if (@list) {
}
} else {
my $node = $main::routeroot;
}
} else {
my $node = $main::routeroot;
- push @out,
"Callsigns connected to $main::mycall"
;
+ push @out,
join(' ', $self->msg('userconn'), $main::mycall)
;
my $call;
my $call;
- my $i = 0;
my @l;
my @val = sort $node->users;
foreach $call (@val) {
my @l;
my @val = sort $node->users;
foreach $call (@val) {
- if (
$i
>= 5) {
- push @out, sprintf "%-12s %-12s %-12s %-12s %-12s
%-12s
", @l;
+ if (
@l
>= 5) {
+ push @out, sprintf "%-12s %-12s %-12s %-12s %-12s", @l;
@l = ();
@l = ();
- $i = 0;
}
my $uref = Route::User::get($call);
my $s = $call;
}
my $uref = Route::User::get($call);
my $s = $call;
@@
-47,10
+45,9
@@
if (@list) {
$s = "$call?";
}
push @l, $s;
$s = "$call?";
}
push @l, $s;
- $i++;
}
}
- push @l, "" while
$i++
< 5;
- push @out, sprintf "%-12s %-12s %-12s %-12s %-12s
%-12s
", @l;
+ push @l, "" while
@l
< 5;
+ push @out, sprintf "%-12s %-12s %-12s %-12s %-12s", @l;
}
return (1, @out);
}
return (1, @out);