+13May08=======================================================================
+1. add disc users|nodes|all so that each of these classes can be disconnected
+in one command. From a request by Mauro IV3SCP.
12May08=======================================================================
1. add 'exact' keyword on sh/dx to allow for an exact match to a callsign.
From a request by Robert HB9DZA.
=== 5^DIRECTORY-^
Sysops can see all users' messages.
-=== 8^DISCONNECT <call> [<call> ...]^Disconnect a user or cluster
-Disconnect any <call> connected locally
+=== 8^DISCONNECT <call> [<call> ...]^Disconnect user(s) or node(s)
+Disconnect any <call> connected locally.
+
+In addition you can disconnect all users (except yourself) with
+
+ DISC users
+
+or all nodes with:
+
+ DISC nodes
+
+or everything (except yourself) with
+
+ DISC all
=== 0^DX [BY <call>] <freq> <call> <remarks>^Send a DX spot
This is how you send a DX Spot to other users. You can, in fact, now
return (1, $self->msg('e5'));
}
+if ($calls[0] =~ /^user/i ) {
+ @calls = grep {$_ ne $self->call} DXChannel::get_all_user_calls();
+} elsif ($calls[0] =~ /^node/i) {
+ @calls = grep {$_ ne $main::mycall} DXChannel::get_all_node_calls();
+} elsif (lc $calls[0] eq 'all') {
+ @calls = grep {$_ ne $main::mycall && $_ ne $self->call} DXChannel::get_all_node_calls(), DXChannel::get_all_user_calls();
+}
foreach $call (@calls) {
$call = uc $call;
next if $call eq $main::mycall;
return @out;
}
+# return a list of node calls
+sub get_all_node_calls
+{
+ my $ref;
+ my @out;
+ foreach $ref (values %channels) {
+ push @out, $ref->{call} if $ref->is_node;
+ }
+ return @out;
+}
+
# return a list of all users
sub get_all_users
{
$version = '1.55';
$subversion = '0';
-$build = '7';
+$build = '8';
1;