changed pc50 logic
authordjk <djk>
Mon, 22 Nov 1999 20:16:36 +0000 (20:16 +0000)
committerdjk <djk>
Mon, 22 Nov 1999 20:16:36 +0000 (20:16 +0000)
Changes
cmd/Aliases
cmd/rcmd.pl
cmd/show/moon.pl
perl/DXProt.pm
perl/DXProtout.pm
perl/Messages

diff --git a/Changes b/Changes
index fe846fcb9bc4a665e8f2115b999cd1e9ae5e129f..37ea213d636636ac8feeb0f941a7f3db6948e27d 100644 (file)
--- a/Changes
+++ b/Changes
@@ -1,5 +1,8 @@
 21Nov99=======================================================================
 1. lose extraneous rubbish after the callsign as sent by BBSes.
+2. Change end label on sh/moon to RGain dB rather than Loss dB.
+3. Remove spurious call to DXCluster->get_exact in pc50.
+4. Allow rcmd to locally connected nodes that are not in the nodes table.
 20Nov99=======================================================================
 1. Added set/unset logininfo which will tell anybody that has this set when
 someone has either logged in or out of this node.
index 6d384b7c208bd9a106636a5ce8d9257822bfd34c..338a80986edbd09047eee42e6acfe2e24c9f38c8 100644 (file)
@@ -23,7 +23,7 @@ package CmdAlias;
 
 %alias = (
     '?' => [
-         '^\?', 'apropos help', 'apropos',
+         '^\?', 'apropos', 'apropos',
        ],
     'a' => [
          '^ann.*/full', 'announce full', 'announce', 
index caa9fb83ad445c13e770a7ff9b7aa61fcc93dacb..11a8caf533445d72e7d5fb378934515c1d94d96e 100644 (file)
@@ -14,7 +14,7 @@ my ($call) = $line =~ /^\s*(\S+)/;
 return (1, $self->msg('e5')) if $self->priv < 6;
 
 # is there a call?
-return (1, $self->msg('e6')) if !$call;
+return (1, $self->msg('e6')) unless $call;
 
 # remove the callsign from the line
 $line =~ s/^\s*$call\s+//;
@@ -22,9 +22,13 @@ $line =~ s/^\s*$call\s+//;
 # can we see it? Is it a node?
 $call = uc $call;
 my $noderef = DXCluster->get_exact($call);
-return (1, $self->msg('e7', $call)) if !$noderef || !$noderef->pcversion;
+unless ($noderef) {
+       $noderef = DXChannel->get($call);
+       $noderef = undef unless $noderef && $noderef->is_ak1a;
+}
+return (1, $self->msg('e7', $call)) unless $noderef;
 
-# ping it
+# rcmd it
 DXProt::addrcmd($self->call, $call, $line);
 
 return (1, $self->msg('rcmdo', $line, $call));
index d26a96536ef8109ca8c26a3af0fd71eb45240d11..b1e4feb4fc0d64780845c441a0e2a1a66fc0e7c1 100644 (file)
@@ -48,7 +48,7 @@ push @out, $self->msg('moon');
 foreach $l (@in) {
        my ($rise, $set, $az, $dec, $loss )=Sun::rise_set($yr,$month,$day,$hr,$min,$l->[1],$l->[2],1);
        $l->[3] =~ s{(-\d+|/\w+)$}{};
-       push @out,sprintf("%-6.6s %-30.30s %s %s %6.1f %6.1f       %3.1f", $l->[3], $l->[0], $rise, $set, $az, $dec, $loss);
+       push @out,sprintf("%-6.6s %-30.30s %s %s %6.1f %6.1f      %3.1f", $l->[3], $l->[0], $rise, $set, $az, $dec, $loss);
 }
 
                        
index efe969b44a17222cbb32b5bd087db8a4329c83f0..61e72661270c41c552c61ae54027accb7879b890 100644 (file)
@@ -776,7 +776,7 @@ sub process
                
                # send a pc50 out on this channel
                if ($t >= $dxchan->pc50_t + $DXProt::pc50_interval) {
-                       $dxchan->send(pc50());
+                       $dxchan->send(pc50(scalar DXChannel::get_all_users));
                        $dxchan->pc50_t($t);
                } 
 
index 887e0dcb369a084a2fc92e5417784e5658ed7540..ee761cdc83a99dc12896d841f2bc70025c0ac961 100644 (file)
@@ -305,8 +305,8 @@ sub pc49
 # periodic update of users, plus keep link alive device (always H99)
 sub pc50
 {
-       my $me = DXCluster->get_exact($main::mycall);
-       my $n = $me->users ? $me->users : '0';
+       my $n = shift;
+       $n = 0 unless $n >= 0;
        return "PC50^$main::mycall^$n^H99^";
 }
 
index ded87db7588d74faf120a3e31b27a5f2dd7e47db..6a33b1efde6c3fe0f9a68d0b1d3ce8f4248cbc1b 100644 (file)
@@ -109,7 +109,7 @@ package DXM;
                                msg3 => 'Msg $_[0]: $_[1] changed from $_[2] to $_[3]',
                                msgu => 'usage: msg <cmd> <msgno> data...',
                                merge1 => 'Merge request for $_[1] spots and $_[2] WWV sent to $_[0]',
-                               moon => 'Location                              Rise   Set      Azim   Elev  RGain dB',
+                               moon => 'Location                              Rise   Set      Azim   Elev RGain dB',
                                namee1 => 'Please enter your name, set/name <your name>',
                                namee2 => 'Can\'t find user $_[0]!',
                                name => 'Your name is now \"$_[0]\"',