From 3911e74f910a67420878ff0324a051c98dfdf7ae Mon Sep 17 00:00:00 2001 From: minima Date: Tue, 24 Jan 2006 00:17:00 +0000 Subject: [PATCH] slight mod on the PCXX replies --- perl/DXXml/Text.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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) { -- 2.43.0