add beginnings of a route find command.
[spider.git] / perl / DXProtout.pm
index 4fbb581c08e7ec70cc69bb569b8727a9929630f2..e42c4ef2bde1df0a7e9d983683d482a1f84fdbd7 100644 (file)
@@ -417,15 +417,38 @@ sub pc92c
        return _gen_pc92('C', 1, @_);
 }
 
+# send a 'find' message
+sub pc92f
+{
+       my $target = shift;
+       my $from = shift;
+       return "PC92^$main::mycall^" . gen_pc9x_t() . "^F^$from^$target^H99^"
+}
+
+# send a 'reply' message
+sub pc92r
+{
+       my $to = shift;
+       my $target = shift;
+       my $flag = shift;
+       my $ms = shift;
+       return "PC92^$main::mycall^" . gen_pc9x_t() . "^R^$to^$target^$flag^$ms^H99^"
+}
+
 sub pc93
 {
        my $to = shift;                         # *, callsign, chat group name, sysop
        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;