projects
/
spider.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fixed basic usdb stuff
[spider.git]
/
perl
/
DXProtout.pm
diff --git
a/perl/DXProtout.pm
b/perl/DXProtout.pm
index 8edc0831eb327df41a1f81ea1655953b48142dee..80b1a5d6eeb916b94fd45bfc1f215bedd627746c 100644
(file)
--- a/
perl/DXProtout.pm
+++ b/
perl/DXProtout.pm
@@
-21,7
+21,7
@@
use strict;
use vars qw($VERSION $BRANCH);
$VERSION = sprintf( "%d.%03d", q$Revision$ =~ /(\d+)\.(\d+)/ );
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;
$main::build += $VERSION;
$main::branch += $BRANCH;
@@
-32,7
+32,7
@@
$main::branch += $BRANCH;
# 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;
@@
-41,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)
@@
-209,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^~";
}
@@
-359,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__