make sure that pc92 C records are sent on init with last received time
[spider.git] / perl / DXProtout.pm
index 72595d8a0423ebeebeff7981fbb4cb942cb1d8b3..0ba94dc634c5789f0b4f35c3b46489d60e944091 100644 (file)
@@ -395,8 +395,22 @@ sub _gen_time
 sub _gen_pc92
 {
        my $sort = shift;
-       my $ext = $sort eq 'C';
-       my $s = "PC92^" . _encode_pc92_call($main::me, $ext) . "^" . _gen_time . "^$sort";
+#      my $ext = $sort eq 'C';
+       my $ext = 1;
+       my $s = "PC92^$main::mycall^" . _gen_time . "^$sort";
+       for (@_) {
+               $s .= "^" . _encode_pc92_call($_, $ext);
+       }
+       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);
        }