2. got rid of the stupid bug that failed to print out the offline message
but put a "*main::STDOUTmain" for every line of that message instead.
3. Ported to 5.00503 (well actually just installed it and it just runs).
+4. Added who command
23May99=======================================================================
1. Got rid of some of the useless error messages on global destruction when
quiting a program.
],
'd' => [
'^del', 'kill', 'kill',
- '^del.*/fu', 'kill full', 'kill',
+ '^del\w*/fu', 'kill full', 'kill',
'^di\w*/a\w*', 'directory all', 'directory',
'^di\w*/b\w*', 'directory bulletins', 'directory',
'^di\w*/n\w*', 'directory new', 'directory',
'^set/noww', 'unset/wwv', 'unset/wwv',
'^set/nowx', 'unset/wx', 'unset/wx',
'^sh$', 'show', 'show',
+ '^sh\w*/bu', 'show/files bulletins', 'show/files',
'^sh\w*/c/n', 'show/configuration nodes', 'show/configuration',
'^sh\w*/c$', 'show/configuration', 'show/configuration',
'^sh\w*/dx/(\d+)-(\d+)', 'show/dx $1-$2', 'show/dx',
--- /dev/null
+#
+# 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";
+
+foreach $dxchan ( sort {$a->call cmp $b->call} DXChannel::get_all ) {
+ my $call = $dxchan->call();
+ my $t = cldatetime($dxchan->user->lastin);
+ my $sort = $dxchan->is_ak1a() ? "NODE" : "USER";
+ my $name = $dxchan->user->name;
+ push @out, sprintf "%10s $sort $t $name", $call;
+}
+
+return (1, @out)