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.
%alias = (
'?' => [
- '^\?', 'apropos help', 'apropos',
+ '^\?', 'apropos', 'apropos',
],
'a' => [
'^ann.*/full', 'announce full', 'announce',
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+//;
# 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));
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);
}
# 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);
}
# 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^";
}
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]\"',