X-Git-Url: http://gb7djk.dxcluster.net/gitweb/gitweb.cgi?a=blobdiff_plain;f=perl%2FDXProtout.pm;h=118261ef30450aaf96e5c2c3d729687049f7b5d5;hb=aeb4c8591de710bd8de14f33817d2f0aabbd5e28;hp=3904c772c6ae266900df20131e70371c1a957864;hpb=ad7e69f78ee4c0593e1d7576a7c1fd3b13931f84;p=spider.git diff --git a/perl/DXProtout.pm b/perl/DXProtout.pm index 3904c772..118261ef 100644 --- a/perl/DXProtout.pm +++ b/perl/DXProtout.pm @@ -35,7 +35,7 @@ sub pc10 { my ($from, $to, $via, $text, $origin) = @_; my ($user1, $user2); - if ($via && $via ne $to) { + if ($via && $via ne $to && $via ne '*') { $user1 = $via; $user2 = $to; } else { @@ -120,7 +120,7 @@ sub pc17 # Request init string sub pc18 { - my $flags = " pc92"; + my $flags = " pc9[23]"; $flags .= " xml" if DXXml::available(); return "PC18^DXSpider Version: $main::version Build: $main::build$flags^$DXProt::myprot_version^"; } @@ -417,6 +417,17 @@ sub pc92c return _gen_pc92('C', 1, @_); } +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 + $line = unpad($line); + $line =~ s/\^/\\5E/g; # remove any ^ characters + return "PC93^$main::mycall^" . gen_pc9x_t() . "^$to^$from^$via^$line^H99^"; +} + 1; __END__