loads of changes and added things
[spider.git] / cmd / talk.pl
index 953d5f2d3eae3fc6abf8cac10c098d41ec9e14d0..23efabfc5e2b64999ecfe0345fe325ab013ece98 100644 (file)
@@ -19,12 +19,16 @@ if ($argv[1] eq '>') {
   $line =~ s/^$argv[0]\s*//;
 }
 
+my $call = $via ? $via : $to;
+my $ref = DXCluster->get($call);
+return (1, "$call not visible on the cluster") if !$ref;
+
 my $dxchan = DXCommandmode->get($to);         # is it for us?
 if ($dxchan && $dxchan->is_user) {
   $dxchan->send("$to de $from $line");
 } else {
   $line =~ s/\^//og;            # remove any ^ characters
-  my $prot = DXProt::pc10($self, $to, $via, $line);
+  my $prot = DXProt::pc10($from, $to, $via, $line);
   DXProt::route($via?$via:$to, $prot);
 }