X-Git-Url: http://gb7djk.dxcluster.net/gitweb/gitweb.cgi?a=blobdiff_plain;f=perl%2FDXProtout.pm;h=63bc5a3b08a5ba8fbb88abc8b49eaab1dfe2efca;hb=57c9c65161ea49fee9d6f22be329f2faa490a46f;hp=118261ef30450aaf96e5c2c3d729687049f7b5d5;hpb=aeb4c8591de710bd8de14f33817d2f0aabbd5e28;p=spider.git diff --git a/perl/DXProtout.pm b/perl/DXProtout.pm index 118261ef..63bc5a3b 100644 --- a/perl/DXProtout.pm +++ b/perl/DXProtout.pm @@ -120,7 +120,7 @@ sub pc17 # Request init string sub pc18 { - my $flags = " pc9[23]"; + my $flags = " pc9x"; $flags .= " xml" if DXXml::available(); return "PC18^DXSpider Version: $main::version Build: $main::build$flags^$DXProt::myprot_version^"; } @@ -423,9 +423,14 @@ sub pc93 my $from = shift; # from user callsign my $via = shift || '*'; # *, node call my $line = shift; # the text + my $origin = shift; # this will be present on proxying from PC10 + $line = unpad($line); $line =~ s/\^/\\5E/g; # remove any ^ characters - return "PC93^$main::mycall^" . gen_pc9x_t() . "^$to^$from^$via^$line^H99^"; + my $s = "PC93^$main::mycall^" . gen_pc9x_t() . "^$to^$from^$via^$line"; + $s .= "^$origin" if $origin; + $s .= "^H99^"; + return $s; } 1;