X-Git-Url: http://dxcluster.org/gitweb/gitweb.cgi?a=blobdiff_plain;f=perl%2FDXProtout.pm;h=e00e1d724f3e44618b782a249bea0a172ca0fee9;hb=c4dcdb17c8c86d04c9563858adc9147361a9d6c8;hp=4fbb581c08e7ec70cc69bb569b8727a9929630f2;hpb=cbda6153fad2adddb58ee5a87f3981aa2ad754ad;p=spider.git diff --git a/perl/DXProtout.pm b/perl/DXProtout.pm index 4fbb581c..e00e1d72 100644 --- a/perl/DXProtout.pm +++ b/perl/DXProtout.pm @@ -19,9 +19,6 @@ use DXDebug; use strict; -use vars qw($VERSION $BRANCH); -($VERSION, $BRANCH) = dxver(q$Revision$); - use vars qw($sentencelth); $sentencelth = 180; @@ -417,15 +414,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;