]> dxcluster.org Git - spider.git/commitdiff
fix messages in DXDb.pm to point to the correct ones. Thanks Rene (oz1lqh)
authorminima <minima>
Wed, 12 Jun 2002 20:50:56 +0000 (20:50 +0000)
committerminima <minima>
Wed, 12 Jun 2002 20:50:56 +0000 (20:50 +0000)
add missing wcys and wcyu messages to Messages. Thanks Rene (again)
upissue version number to 1.50 (finally)
fixed (un)set/wwv and (un)set/wcy so they don't issue spurious messages.
Thanks Rene (oz1lqh)

Changes
cmd/set/wcy.pl
cmd/set/wwv.pl
cmd/unset/wcy.pl
cmd/unset/wwv.pl
perl/DXDb.pm
perl/Messages
perl/Prefix.pm
perl/cluster.pl

diff --git a/Changes b/Changes
index 62d891a985bd5cfd8e59212f3a2c723f599e5b61..ab3605e267e6c61afe82e41a2b5925c5eb665e54 100644 (file)
--- a/Changes
+++ b/Changes
@@ -1,3 +1,10 @@
+12Jun02=======================================================================
+1. fixed (un)set/wwv and (un)set/wcy so they don't issue spurious messages.
+Thanks Rene (oz1lqh)
+07Jun02=======================================================================
+1. fix messages in DXDb.pm to point to the correct ones. Thanks Rene (oz1lqh)
+2. add missing wcys and wcyu messages to Messages. Thanks Rene (again)
+2. upissue version number to 1.50 (finally)
 16Apr02=======================================================================
 1. allow the rest of PC19 to continue if it contains a reference to a locally
 connected node. Thank you Tommy SM3OSM.
index 4746112711239a2ab33fb19bd1fedd29f6c10fb4..1aed404c238510bfbcdf3fc669e6c9f51da87232 100644 (file)
@@ -17,7 +17,7 @@ foreach $call (@args) {
   $call = uc $call;
   my $chan = DXChannel->get($call);
   if ($chan) {
-    $chan->wcy(1);
+    DXChannel::wcy($chan, 1);
     $chan->user->wantwcy(1);
        push @out, $self->msg('wcys', $call);
   } else {
index d713e48311195c1ec7ccf1c4059ec0c77e22491d..1c1ff9ccc28e507da2986ba7a9bfc2060a227134 100644 (file)
@@ -17,7 +17,7 @@ foreach $call (@args) {
   $call = uc $call;
   my $chan = DXChannel->get($call);
   if ($chan) {
-    $chan->wwv(1);
+    DXChannel::wwv($chan, 1);
     $chan->user->wantwwv(1);
        push @out, $self->msg('wwvs', $call);
   } else {
index 965a3d3759af832506d57d5ef7b061b8168ccba6..42b098a3228e2f68cc333822e9bdc9e51fd114e9 100644 (file)
@@ -17,7 +17,7 @@ foreach $call (@args) {
   $call = uc $call;
   my $chan = DXChannel->get($call);
   if ($chan) {
-    $chan->wcy(0);
+    DXChannel::wcy($chan, 0);
     $chan->user->wantwcy(0);
        push @out, $self->msg('wcyu', $call);
   } else {
index 51882a4697ac0da5b83c1fdc92ffc945f7213a5c..eebf16d73b54e95e64b5ba86071a28bedd4d8526 100644 (file)
@@ -17,7 +17,7 @@ foreach $call (@args) {
   $call = uc $call;
   my $chan = DXChannel->get($call);
   if ($chan) {
-    $chan->wwv(0);
+    DXChannel::wwv($chan, 0);
     $chan->user->wantwwv(0);
        push @out, $self->msg('wwvu', $call);
   } else {
index 6ee8f939de92e235ebd0144350c79c79550fbd47..db26d4aacf5b8329732e132e4ad7c303061cdc91 100644 (file)
@@ -262,18 +262,18 @@ sub process
                        my $db = getdesc($f[4]);
                        if ($db) {
                                if ($db->{remote}) {
-                                       sendremote($dxchan, $f[2], $f[3], $dxchan->msg('dx1', $db->{remote}));
+                                       sendremote($dxchan, $f[2], $f[3], $dxchan->msg('db1', $db->{remote}));
                                } else {
                                        my $value = $db->getkey($f[5]);
                                        if ($value) {
                                                my @out = split /\n/, $value;
                                                sendremote($dxchan, $f[2], $f[3], @out);
                                        } else {
-                                               sendremote($dxchan, $f[2], $f[3], $dxchan->msg('dx2', $f[5], $db->{name}));
+                                               sendremote($dxchan, $f[2], $f[3], $dxchan->msg('db2', $f[5], $db->{name}));
                                        }
                                }
                        } else {
-                               sendremote($dxchan, $f[2], $f[3], $dxchan->msg('dx3', $f[4]));
+                               sendremote($dxchan, $f[2], $f[3], $dxchan->msg('db3', $f[4]));
                        }
                        last SWITCH;
                }
index 6a2b4fb5722507abcb75b53ab4a3314f16c2663e..60ad432c34801c765206d0cbf1b5fe27dc1b2eb4 100644 (file)
@@ -12,10 +12,10 @@ package DXM;
                 en => {
                                addr => 'Address set to: $_[0]',
                 already => '$_[0] already connnected',
-                               anns => 'Announce flag set on $_[0]',
-                               annu => 'Announce flag unset on $_[0]',
-                               annts => 'AnnTalk flag set on $_[0]',
-                               anntu => 'AnnTalk flag unset on $_[0]',
+                               anns => 'Announces enabled for $_[0]',
+                               annu => 'Announces disabled for $_[0]',
+                               annts => 'AnnTalk enabled for $_[0]',
+                               anntu => 'AnnTalk disabled for $_[0]',
                                badnode1 => '$_[0] is now a bad node',
                                badnode2 => '$_[0] is now a good node',
                                badnode3 => 'List of Bad Nodes:-',
@@ -52,8 +52,8 @@ package DXM;
                                dx1 => 'Frequency $_[0] not in band (see show/band); usage: DX [BY call] freq call comments',
                                dx2 => 'Need a callsign; usage: DX [BY call] freq call comments',
                                dx3 => 'The callsign or frequency is invalid',
-                               dxs => 'DX Spots flag set on $_[0]',
-                               dxu => 'DX Spots flag unset on $_[0]',
+                               dxs => 'DX Spots enabled for $_[0]',
+                               dxu => 'DX Spots disabled for $_[0]',
                                e1 => 'Invalid command',
                                e2 => 'Error: $_[0]',
                                e3 => '$_[0]: $_[1] not found',
@@ -100,8 +100,8 @@ package DXM;
                                filter4 => '$_[0]$_[1] Filter $_[2] deleted for $_[3]',
                                filter5 => 'need some filter commands...',
                                filter6 => '$_[0]$_[1] Filter for $[2] not found',
-                               grids => 'DX Grid flag set on $_[0]',
-                               gridu => 'DX Grid flag unset on $_[0]',
+                               grids => 'DX Grid enabled for $_[0]',
+                               gridu => 'DX Grid disabled for $_[0]',
                                illcall => 'Sorry, $_[0] is an invalid callsign',
                                hasha => '$_[0] already exists in $_[1]',
                                hashb => '$_[0] added to $_[1]',
@@ -261,8 +261,8 @@ package DXM;
                                time1 => 'Local Time: $_[0] $_[1], UTC $_[2]',
                                time2 => '$_[0] Local (standard) time: $_[1] ($_[2] Hours)',
                                time3 => '$_[0]  $_[1]',
-                               talks => 'Talk flag set on $_[0]',
-                               talku => 'Talk flag unset on $_[0]',
+                               talks => 'Talk enabled for $_[0]',
+                               talku => 'Talk disabled for $_[0]',
                                talkend => 'Finished talking to you',
                                talkinst => 'Entering Talkmode, /EX to end, /<cmd> to run a command',
                                talknh => 'Sorry $_[0] is not online at the moment',
@@ -273,12 +273,14 @@ package DXM;
                                usernf => '*** User record for $_[0] not found ***',
                                wcy1 => '$_[0] is missing or out of range',
                                wcy2 => 'Duplicate WCY',
+                wcys => 'WCY enabled for $_[0]',
+                               wcyu => 'WCY disabled for $_[0]',
                                wwv1 => '$_[0] is missing or out of range',
                                wwv2 => 'Duplicate WWV',
-                               wwvs => 'WWV flag set on $_[0]',
-                               wwvu => 'WWV flag unset on $_[0]',
-                               wxs => 'WX flag set on $_[0]',
-                               wxu => 'WX flag unset on $_[0]',
+                               wwvs => 'WWV enabled for $_[0]',
+                               wwvu => 'WWV disabled $_[0]',
+                               wxs => 'WX enabled for $_[0]',
+                               wxu => 'WX disabled for $_[0]',
                           },
                 nl => {
                                addr => 'Addres gezet op: $_[0]',
index 954490fcf41e2798ad39ba6c6951b89002922dd5..01e3079c7387c46b2aa39d010c4d6dd95fea5c12 100644 (file)
@@ -140,51 +140,52 @@ sub next
 
 sub extract
 {
-       my $call = uc shift;
+       my $calls = uc shift;
        my @out;
-       my @nout;
        my $p;
        my @parts;
-       my ($sp, $i);
+       my ($call, $sp, $i);
   
-       # first check if the whole thing succeeds
-       @out = get($call);
-       return @out if @out > 0 && $out[0] eq $call;
-  
-       # now split the call into parts if required
-       @parts = ($call =~ '/') ? split('/', $call) : ($call);
-
-       # remove any /0-9 /P /A /M /MM /AM suffixes etc
-       if (@parts > 1) {
-               $p = $parts[0];
-               shift @parts if $p =~ /^(WEB|NET)$/o;
-               $p = $parts[$#parts];
-               pop @parts if $p =~ /^(\d+|[JPABM]|AM|MM|BCN|JOTA|SIX|WEB|NET|Q\w+)$/o;
-               $p = $parts[$#parts];
-               pop @parts if $p =~ /^(\d+|[JPABM]|AM|MM|BCN|JOTA|SIX|WEB|NET|Q\w+)$/o;
+       foreach $call (split /,/, $calls) {
+               # first check if the whole thing succeeds
+               my @nout = get($call);
+               push @out, @nout if @nout;
+               next if @nout > 0 && $nout[0] eq $call;
+         
+               # now split the call into parts if required
+               @parts = ($call =~ '/') ? split('/', $call) : ($call);
+
+               # remove any /0-9 /P /A /M /MM /AM suffixes etc
+               if (@parts > 1) {
+                       $p = $parts[0];
+                       shift @parts if $p =~ /^(WEB|NET)$/o;
+                       $p = $parts[$#parts];
+                       pop @parts if $p =~ /^(\d+|[JPABM]|AM|MM|BCN|JOTA|SIX|WEB|NET|Q\w+)$/o;
+                       $p = $parts[$#parts];
+                       pop @parts if $p =~ /^(\d+|[JPABM]|AM|MM|BCN|JOTA|SIX|WEB|NET|Q\w+)$/o;
+         
+                       # can we resolve them by direct lookup
+                       foreach $p (@parts) {
+                               @nout = get($p);
+                               push @out, @nout if @nout;
+                               next if @nout > 0 && $nout[0] eq $call;
+                       }
+               }
   
-               # can we resolve them by direct lookup
+               # which is the shortest part (first if equal)?
+               $sp = $parts[0];
                foreach $p (@parts) {
-                       @out = get($p);
-                       return @out if @out > 0 && $out[0] eq $call;
+                       $sp = $p if length $sp > length $p;
+               }
+               # now start to resolve it from the left hand end
+               for ($i = 1; $i <= length $sp; ++$i) {
+                       my @wout = get(substr($sp, 0, $i));
+                       last if @wout > 0 && $wout[0] gt $sp;
+                       last if @wout == 0;
+                       push @out, @wout;
                }
        }
-  
-       # which is the shortest part (first if equal)?
-       $sp = $parts[0];
-       foreach $p (@parts) {
-               $sp = $p if length $sp > length $p;
-       }
-       # now start to resolve it from the left hand end
-       for (@out = (), $i = 1; $i <= length $sp; ++$i) {
-               @nout = get(substr($sp, 0, $i));
-               last if @nout > 0 && $nout[0] gt $sp;
-               last if @nout == 0;
-               @out = @nout;
-       }
-  
-       # not found
-       return (@out > 0) ? @out : ();
+       return @out;
 }
 
 my %valid = (
index aef9a4be33e47683453938b76e1ebe655e6aeb05..b33a8b6e0cf81a14832e424182b70a8d2b2453f0 100755 (executable)
@@ -113,7 +113,7 @@ use vars qw(@inqueue $systime $version $starttime $lockfn @outstanding_connects
 
 @inqueue = ();                                 # the main input queue, an array of hashes
 $systime = 0;                                  # the time now (in seconds)
-$version = "1.49";                             # the version no of the software
+$version = "1.50";                             # the version no of the software
 $starttime = 0;                 # the starting time of the cluster   
 #@outstanding_connects = ();     # list of outstanding connects
 @listeners = ();                               # list of listeners