add CTY-2008 from cty_wt.dat, stop chat on pc12
[spider.git] / perl / DXProtHandle.pm
index 43e5670cf4d511311658ecf6cd9e6875bf17d8b0..80e8194eebc7ee30eb761c0f8d2690f2a069855f 100644 (file)
@@ -321,6 +321,12 @@ sub handle_12
                return;
        }
 
+       # ignore PC12s from origins that use PCxx protocol
+       my $oref = Route::get($origin);
+       if ($oref->do_pc9x) {
+               dbg("PCPROT: PC12 rxed from PC9x node, ignored") if isdbg('chanerr');
+               return;
+       }
 
        my $dxchan;
 
@@ -1988,7 +1994,9 @@ sub handle_93
                return if $via eq 'LOCAL';
        } elsif (!is_callsign($to) && $text =~ /^#\d+ /) {
                # chat messages to non-pc9x nodes
-               $self->send_chat(1, pc12($from, $text, undef, $to, undef, $pcall), $from, '*', $text, $to, $pcall, '0');
+               # don't do this anymore. It is too disruptive 'cos other software does not
+               # understand PC12 groups.
+#              $self->send_chat(1, pc12($from, $text, undef, $to, undef, $pcall), $from, '*', $text, $to, $pcall, '0');
        }
 
        # broadcast this chat sentence everywhere unless it is targetted to 'LOCAL'