allow 't <call>' for swopping from announces as well
[spider.git] / perl / DXProt.pm
index 02e3d3a80319741db555289dab5d85b8bc9b32bc..153618f9dc182f6a33bd1ee238130f121eef7bde 100644 (file)
@@ -522,7 +522,9 @@ sub normal
                                if ($ann_to_talk) {
                                        my ($to, $call) = $field[3] =~ /^\s*([\w-]+)[\s:]+([\w-]+)/;
                                        if ($to && $call) {
-                                               if ((uc $to eq 'TO' && is_callsign(uc $call)) || is_callsign($call = uc $to)) {
+                                               $to = uc $to;
+                                               $call = uc $call;
+                                               if (($to =~ /^TO?$/ && is_callsign($call)) || is_callsign($call = $to)) {
                                                        my $ref = Route::get($call);
                                                        if ($ref) {
                                                                my $dxchan = $ref->dxchan;