From: minima Date: Tue, 24 Jan 2006 00:17:00 +0000 (+0000) Subject: slight mod on the PCXX replies X-Git-Tag: R_1_52~4 X-Git-Url: http://dxcluster.net/gitweb/gitweb.cgi?a=commitdiff_plain;ds=sidebyside;h=bf538cef7aea232dd3dc1c9574124e17680fc6fa;p=spider.git slight mod on the PCXX replies --- diff --git a/perl/DXXml/Text.pm b/perl/DXXml/Text.pm index 3496e0ed..adec20e8 100644 --- a/perl/DXXml/Text.pm +++ b/perl/DXXml/Text.pm @@ -46,8 +46,8 @@ sub topcxx my @out; my $ref = DXUser->get_current($self->{to}); - while (@_) { - my $line = shift; + for (split /(?:%0D)?\%0A/, $self->{content}) { + my $line = $_; $line =~ s/\s*$//; Log('rcmd', 'out', $self->{to}, $line); if ($self->{u} && $dxchan->is_clx && $ref->is_clx) {