projects
/
spider.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
make PC29 output correct on empty lines
[spider.git]
/
perl
/
DXProtout.pm
diff --git
a/perl/DXProtout.pm
b/perl/DXProtout.pm
index 822beea5fe7bb3ce5ba0c0beaf81f5c206705f40..8de0185b10b22fb45c84b3ea3a2d11246fe71dc9 100644
(file)
--- a/
perl/DXProtout.pm
+++ b/
perl/DXProtout.pm
@@
-35,10
+35,8
@@
sub pc10
$user2 = ' ';
$user1 = $to;
}
$user2 = ' ';
$user1 = $to;
}
-# my $user2 = $via ? $to : ' ';
-# my $user1 = $via ? $via : $to;
$text = unpad($text);
$text = unpad($text);
- $text = ' '
if !$text
;
+ $text = ' '
unless $text && length $text > 0
;
return "PC10^$from^$user1^$text^*^$user2^$main::mycall^~";
}
return "PC10^$from^$user1^$text^*^$user2^$main::mycall^~";
}
@@
-193,8
+191,8
@@
sub pc28
sub pc29
{
my ($fromnode, $tonode, $stream, $text) = @_;
sub pc29
{
my ($fromnode, $tonode, $stream, $text) = @_;
- $text =
~ s/\^/:/og; # remove ^
-# $text =~ s/\~/S/og;
+ $text =
' ' unless $text && length $text > 0;
+ $text =~ s/\^/%5E/og; # remove ^
return "PC29^$fromnode^$tonode^$stream^$text^~";
}
return "PC29^$fromnode^$tonode^$stream^$text^~";
}