X-Git-Url: http://dxcluster.net/gitweb/gitweb.cgi?a=blobdiff_plain;ds=sidebyside;f=perl%2FDXXml%2FText.pm;h=b4a95b44a850d3c8dfc52fc4654829e309b18147;hb=6230850db2f82835e5ef75da4f418615ba4261da;hp=3496e0edad09355c7c382b7dc3fe0ff41d6b8464;hpb=b359511572b5dcd67dc17437e7ce4ca3574eada8;p=spider.git diff --git a/perl/DXXml/Text.pm b/perl/DXXml/Text.pm index 3496e0ed..b4a95b44 100644 --- a/perl/DXXml/Text.pm +++ b/perl/DXXml/Text.pm @@ -14,12 +14,7 @@ use DXDebug; use DXProt; use DXLog; -use vars qw($VERSION $BRANCH @ISA %pings); -$VERSION = sprintf( "%d.%03d", q$Revision$ =~ /(\d+)\.(\d+)/ ); -$BRANCH = sprintf( "%d.%03d", q$Revision$ =~ /\d+\.\d+\.(\d+)\.(\d+)/ || (0,0)); -$main::build += $VERSION; -$main::branch += $BRANCH; - +use vars qw(@ISA); @ISA = qw(DXXml); sub handle_input @@ -46,8 +41,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) {