projects
/
spider.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
added set/usdb and del/usdb commands
[spider.git]
/
perl
/
DXProtout.pm
diff --git
a/perl/DXProtout.pm
b/perl/DXProtout.pm
index 95c1981359262202c5e255752327453540f640a7..80b1a5d6eeb916b94fd45bfc1f215bedd627746c 100644
(file)
--- a/
perl/DXProtout.pm
+++ b/
perl/DXProtout.pm
@@
-19,6
+19,12
@@
use DXDebug;
use strict;
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,0));
+$main::build += $VERSION;
+$main::branch += $BRANCH;
+
#
# All the PCxx generation routines
#
#
# All the PCxx generation routines
#
@@
-26,7
+32,7
@@
use strict;
# create a talk string ($from, $to, $via, $text)
sub pc10
{
# 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;
my ($user1, $user2);
if ($via && $via ne $to) {
$user1 = $via;
@@
-35,10
+41,11
@@
sub pc10
$user2 = ' ';
$user1 = $to;
}
$user2 = ' ';
$user1 = $to;
}
+ $origin ||= $main::mycall;
$text = unpad($text);
$text = ' ' unless $text && length $text > 0;
$text =~ s/\^/%5E/g;
$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)
}
# create a dx message (call, freq, dxcall, text)
@@
-203,7
+210,7
@@
sub pc28
sub pc29
{
my ($fromnode, $tonode, $stream, $text) = @_;
sub pc29
{
my ($fromnode, $tonode, $stream, $text) = @_;
- $text = ' ' unless $text && length $text > 0;
+ $text = ' ' unless
defined
$text && length $text > 0;
$text =~ s/\^/%5E/og; # remove ^
return "PC29^$fromnode^$tonode^$stream^$text^~";
}
$text =~ s/\^/%5E/og; # remove ^
return "PC29^$fromnode^$tonode^$stream^$text^~";
}
@@
-353,6
+360,11
@@
sub pc85
return "PC85^$tonode^$fromnode^$call^$msg^~";
}
return "PC85^$tonode^$fromnode^$call^$msg^~";
}
+# spider route broadcast
+sub pc90
+{
+}
+
1;
__END__
1;
__END__