added AGW port
authorminima <minima>
Tue, 21 Dec 2004 09:47:04 +0000 (09:47 +0000)
committerminima <minima>
Tue, 21 Dec 2004 09:47:04 +0000 (09:47 +0000)
Changes
cmd/who.pl

diff --git a/Changes b/Changes
index 22840d786796b0c1b0e9b6a38d2f7cbecfbf2565..787740f9bada0799aed15f729c187c4ed6d7fca4 100644 (file)
--- a/Changes
+++ b/Changes
@@ -1,3 +1,5 @@
+21Dec04=======================================================================
+1. added AGW port no after an example by IW5DEZ.
 20Dec04=======================================================================
 1. updated create_prefix.pl to only use (supplied) wpxloc.raw and cty.dat
 2. Added IG9, GM/S, 4U1V and some other detail changes to make it compatible
index 6ec7dba36a9b97a7f2776156f0b0fc30cf3f378d..66f937e64541f08ad2e515e3bc9f026b0038b43c 100644 (file)
@@ -1,36 +1,39 @@
-#
-# who : is online
-# a complete list of stations connected
-#
-# Copyright (c) 1999 Dirk Koopman G1TLH
-#
-# $Id$
-
-
-my $self = shift;
-my $dxchan;
-my @out;
-
-push @out, "  Callsign Type      Started           Name     Ave RTT Link";
-
-foreach $dxchan ( sort {$a->call cmp $b->call} DXChannel::get_all ) {
-    my $call = $dxchan->call();
-       my $t = cldatetime($dxchan->startt);
-       my $type = $dxchan->is_node ? "NODE" : "USER";
-       my $sort = "    ";
-       if ($dxchan->is_node) {
-               $sort = "DXSP" if $dxchan->is_spider;
-               $sort = "CLX " if $dxchan->is_clx;
-               $sort = "DXNT" if $dxchan->is_dxnet;
-               $sort = "AR-C" if $dxchan->is_arcluster;
-               $sort = "AK1A" if $dxchan->is_ak1a;
-       }
-       my $name = $dxchan->user->name || " ";
-       my $ping = $dxchan->is_node && $dxchan != $main::me ? sprintf("%5.2f", $dxchan->pingave) : "     ";
-       my $conn = $dxchan->conn;
-       my $ip = '';
-       $ip = $conn->{peerhost} if $conn && $conn->{peerhost};
-       push @out, sprintf "%10s $type $sort $t %-10.10s $ping $ip", $call, $name;
-}
-
-return (1, @out)
+#\r
+# who : is online\r
+# a complete list of stations connected\r
+#\r
+# Copyright (c) 1999 Dirk Koopman G1TLH\r
+#\r
+# $Id$\r
+\r
+\r
+my $self = shift;\r
+my $dxchan;\r
+my @out;\r
+\r
+push @out, "  Callsign Type      Started           Name     Ave RTT Link";\r
+\r
+foreach $dxchan ( sort {$a->call cmp $b->call} DXChannel::get_all ) {\r
+    my $call = $dxchan->call();\r
+       my $t = cldatetime($dxchan->startt);\r
+       my $type = $dxchan->is_node ? "NODE" : "USER";\r
+       my $sort = "    ";\r
+       if ($dxchan->is_node) {\r
+               $sort = "DXSP" if $dxchan->is_spider;\r
+               $sort = "CLX " if $dxchan->is_clx;\r
+               $sort = "DXNT" if $dxchan->is_dxnet;\r
+               $sort = "AR-C" if $dxchan->is_arcluster;\r
+               $sort = "AK1A" if $dxchan->is_ak1a;\r
+       }\r
+       my $name = $dxchan->user->name || " ";\r
+       my $ping = $dxchan->is_node && $dxchan != $main::me ? sprintf("%5.2f", $dxchan->pingave) : "     ";\r
+       my $conn = $dxchan->conn;\r
+       my $ip = '';\r
+       if ($conn) {\r
+               $ip = $conn->{peerhost} if exists $conn->{peerhost};\r
+               $ip = "AGW Port ($conn->{agwport})" if exists $conn->{agwport};\r
+       }\r
+       push @out, sprintf "%10s $type $sort $t %-10.10s $ping $ip", $call, $name;\r
+}\r
+\r
+return (1, @out)\r