['origin_dxcc', 'nc', 10],
['origin_itu', 'ni', 11],
['origin_zone', 'nz', 12],
+ ['by_state', 'nz', 13],
+ ['origin_state', 'nz', 14],
], 'Filter::Cmd');
use vars qw($VERSION $BRANCH);
$VERSION = sprintf( "%d.%03d", q$Revision$ =~ /(\d+)\.(\d+)/ );
-$BRANCH = sprintf( "%d.%03d", q$Revision$ =~ /\d+\.\d+\.(\d+)\.(\d+)/ ) || 0;
+$BRANCH = sprintf( "%d.%03d", q$Revision$ =~ /\d+\.\d+\.(\d+)\.(\d+)/ || (0,0));
$main::build += $VERSION;
$main::branch += $BRANCH;
return DXDupe::listdups('A', $dupage, @_);
}
-
+# is this text field a likely announce to talk substitution?
+# this may involve all sorts of language dependant heuristics, but
+# then again, it might not
+sub is_talk_candidate
+{
+ my ($from, $text) = @_;
+ my $call;
+ ($call) = $text =~ /^\s*(?:[Xx]|[Tt][Oo]?:?)\s+([\w-]+)/;
+ ($call) = $text =~ /^\s*>\s*([\w-]+)\b/ unless $call;
+ ($call) = $text =~ /^\s*([\w-]+):?\b/ unless $call;
+ if ($call) {
+ $call = uc $call;
+ return is_callsign($call);
+ }
+ return undef;
+}
1;