#
# Copyright (c) 1998 Dirk Koopman G1TLH
#
-# $Id$
+#
#
my ($self, $line) = @_;
if (@list) {
foreach my $call (sort @list) {
- my $uref = DXUser->get_current($call);
+ my $uref = DXUser::get_current($call);
if ($uref) {
my $name = $uref->name || '?';
my $qth = $uref->qth || '?';
}
} else {
my $node = $main::routeroot;
- push @out, "Callsigns connected to $main::mycall";
+ push @out, join(' ', $self->msg('userconn'), $main::mycall);
my $call;
- my $i = 0;
my @l;
my @val = sort $node->users;
foreach $call (@val) {
- if ($i >= 5) {
+ if (@l >= 5) {
push @out, sprintf "%-12s %-12s %-12s %-12s %-12s", @l;
@l = ();
- $i = 0;
}
my $uref = Route::User::get($call);
my $s = $call;
$s = "$call?";
}
push @l, $s;
- $i++;
}
- push @l, "" while $i++ < 5;
+ push @l, "" while @l < 5;
push @out, sprintf "%-12s %-12s %-12s %-12s %-12s", @l;
}