X-Git-Url: http://dxcluster.net/gitweb/gitweb.cgi?a=blobdiff_plain;f=perl%2FDXProtout.pm;h=4f4da1e50677953c3d1a8235703f0e22849abff2;hb=8e15f9531d1629f5a2f51ab59fe3ce90e49f2d09;hp=5f1664d0a2646c2e8047133e5a5ca9f0c5fa3975;hpb=948528bfc08dcb29187ef90a1b3cac0c161f5c0b;p=spider.git diff --git a/perl/DXProtout.pm b/perl/DXProtout.pm index 5f1664d0..4f4da1e5 100644 --- a/perl/DXProtout.pm +++ b/perl/DXProtout.pm @@ -6,7 +6,7 @@ # # Copyright (c) 1998 Dirk Koopman G1TLH # -# $Id$ +# # package DXProt; @@ -19,7 +19,7 @@ use DXDebug; use strict; -use vars qw($sentencelth); +use vars qw($sentencelth $pc19_version); $sentencelth = 180; @@ -117,9 +117,8 @@ sub pc17 # Request init string sub pc18 { - my $flags = " pc9x"; - $flags .= " xml" if DXXml::available(); - return "PC18^DXSpider Version: $main::version Build: $main::build$flags^$DXProt::myprot_version^"; + my $flags = shift; + return "PC18^DXSpider Version: $main::version Build: $main::subversion.$main::build$flags^$DXProt::myprot_version^"; } # @@ -138,6 +137,8 @@ sub pc19 my $here = $ref->here; my $conf = $ref->conf; my $version = $ref->version; + $version = $pc19_version unless $version =~ /^\d\d\d\d$/; + my $str = "^$here^$call^$conf^$version"; if (length($s) + length($str) > $sentencelth) { push @out, "PC19" . $s . sprintf "^%s^", get_hops(19);