1. Do some range checking for spots and WWV in the future (got a WWV for Oct
[spider.git] / cmd / talk.pl
index 899a44305a6a543e385e6282dbcd2f8bab85ba0e..ebde8888ebd106101c082af5afff612489a218d7 100644 (file)
@@ -37,9 +37,12 @@ unless ($ref || $via) {
 }
 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");
+       $dxchan->send("$to de $from $line") if $dxchan->talk;
        Log('talk', $to, $from, $main::mycall, $line);
 } else {
        $line =~ s/\^//og;                      # remove any ^ characters