use strict;
+use vars qw($VERSION $BRANCH);
+$VERSION = sprintf( "%d.%03d", q$Revision$ =~ /(\d+)\.(\d+)/ );
+$BRANCH = sprintf( "%d.%03d", q$Revision$ =~ /\d+\.\d+\.(\d+)\.(\d+)/ ) || 0;
+$main::build += $VERSION;
+$main::branch += $BRANCH;
+
#
# All the PCxx generation routines
#
# create a talk string ($from, $to, $via, $text)
sub pc10
{
- my ($from, $to, $via, $text) = @_;
+ my ($from, $to, $via, $text, $origin) = @_;
my ($user1, $user2);
if ($via && $via ne $to) {
$user1 = $via;
$user2 = ' ';
$user1 = $to;
}
+ $origin ||= $main::mycall;
$text = unpad($text);
$text = ' ' unless $text && length $text > 0;
$text =~ s/\^/%5E/g;
- return "PC10^$from^$user1^$text^*^$user2^$main::mycall^~";
+ return "PC10^$from^$user1^$text^*^$user2^$origin^~";
}
# create a dx message (call, freq, dxcall, text)