+03Jan99========================================================================
+1. Upped the version no !!!!
+2. made the DXProtocol routines much less sensitive to '~' characters (JE1SGH)
+3. added '^' -> ':' conversions on ann, talk and dx commands
+4. You can now send messages containing blank lines.
+5. Fixed merge command problem reported by G0RDI
28Dec98========================================================================
1. Crossed fingers, got rid of the instabilities caused by execing programs
at vast speed (reduced it significantly anyway).
$to = "LOCAL";
}
+# change ^ into : for transmission
+$line =~ s/\^/:/og;
+
Log('ann', $to, $from, $line);
DXProt::broadcast_list("To $to de $from <$t>: $line", @locals);
if ($to ne "LOCAL") {
return (1, @out) if !$valid;
+# change ^ into : for transmission
+$line =~ s/\^/:/og;
+
# Store it here
if (Spot::add($freq, $spotted, $main::systime, $line, $spotter)) {
# send orf to the users
return (1, $self->msg('e13', $call)) unless $ref->isa('DXNode');
-my ($spots, $wwv) = $f[1] =~ m{(\d+/\d+)} if $f[1];
+my ($spots, $wwv) = $f[1] =~ m{(\d+)/(\d+)} if $f[1];
$spots = 10 unless $spots;
$wwv = 5 unless $wwv;
}
return (1, "$call not visible on the cluster") if !$ref;
+# change ^ into : for transmission
+$line =~ s/\^/:/og;
+
my $dxchan = DXCommandmode->get($to); # is it for us?
if ($dxchan && $dxchan->is_user) {
$dxchan->send("$to de $from $line");
$self->state('prompt');
}
} else {
- @ans = run_cmd($self, $cmdline) if length $cmdline;
+ @ans = run_cmd($self, $cmdline); # if length $cmdline;
if ($self->{pagelth} && @ans > $self->{pagelth}) {
my $i;
return (1, "Syserr: Eval err $errstr on stored func $self->{func}");
}
} else {
+
+ return () if length $cmdline == 0;
# strip out //
$cmdline =~ s|//|/|og;
sub normal
{
my ($self, $line) = @_;
- my @field = split /[\^\~]/, $line;
+ my @field = split /\^/, $line;
+ pop @field if $field[-1] eq '~';
+# print join(',', @field), "\n";
+
# ignore any lines that don't start with PC
return if !$field[0] =~ /^PC/;
@inqueue = (); # the main input queue, an array of hashes
$systime = 0; # the time now (in seconds)
-$version = "1.17"; # the version no of the software
+$version = "1.20"; # the version no of the software
$starttime = 0; # the starting time of the cluster
# handle disconnections