make sure that pc92 C records are sent on init with last received time
[spider.git] / perl / DXProtout.pm
index ea8007267c062e238b99e77e51e466cc0246a784..0ba94dc634c5789f0b4f35c3b46489d60e944091 100644 (file)
@@ -395,7 +395,8 @@ sub _gen_time
 sub _gen_pc92
 {
        my $sort = shift;
-       my $ext = $sort eq 'C';
+#      my $ext = $sort eq 'C';
+       my $ext = 1;
        my $s = "PC92^$main::mycall^" . _gen_time . "^$sort";
        for (@_) {
                $s .= "^" . _encode_pc92_call($_, $ext);
@@ -403,6 +404,19 @@ sub _gen_pc92
        return $s . '^H99^';
 }
 
+sub gen_pc92_with_time
+{
+       my $call = shift;
+       my $sort = shift;
+       my $t = shift;
+       my $ext = 1;
+       my $s = "PC92^$call^$t^$sort";
+       for (@_) {
+               $s .= "^" . _encode_pc92_call($_, $ext);
+       }
+       return $s . '^H99^';
+}
+
 # add a local one
 sub pc92a
 {