X-Git-Url: http://gb7djk.dxcluster.net/gitweb/gitweb.cgi?a=blobdiff_plain;f=cmd%2Fwho.pl;h=87f4ee08dd9d098848f273854eddcd0a5058db16;hb=refs%2Fheads%2Fnewdisc;hp=66f937e64541f08ad2e515e3bc9f026b0038b43c;hpb=d4ff3dc3e6416f64e50a16e7b0daefa456f34048;p=spider.git diff --git a/cmd/who.pl b/cmd/who.pl index 66f937e6..87f4ee08 100644 --- a/cmd/who.pl +++ b/cmd/who.pl @@ -4,7 +4,7 @@ # # Copyright (c) 1999 Dirk Koopman G1TLH # -# $Id$ +# my $self = shift; @@ -24,13 +24,17 @@ foreach $dxchan ( sort {$a->call cmp $b->call} DXChannel::get_all ) { $sort = "DXNT" if $dxchan->is_dxnet; $sort = "AR-C" if $dxchan->is_arcluster; $sort = "AK1A" if $dxchan->is_ak1a; + } else { + $sort = "LOCL" if $dxchan->conn->isa('IntMsg'); + $sort = "WEB " if $dxchan->is_web; + $sort = "EXT " if $dxchan->conn->isa('ExtMsg'); } my $name = $dxchan->user->name || " "; my $ping = $dxchan->is_node && $dxchan != $main::me ? sprintf("%5.2f", $dxchan->pingave) : " "; my $conn = $dxchan->conn; my $ip = ''; if ($conn) { - $ip = $conn->{peerhost} if exists $conn->{peerhost}; + $ip = $dxchan->hostname; $ip = "AGW Port ($conn->{agwport})" if exists $conn->{agwport}; } push @out, sprintf "%10s $type $sort $t %-10.10s $ping $ip", $call, $name;