X-Git-Url: http://dxcluster.net/gitweb/gitweb.cgi?a=blobdiff_plain;f=perl%2FDXXml%2FText.pm;h=3b8b5b4438797e5919b0989d24cc1feb7b0c772d;hb=ab811a0c902225075a9bd69749f65594079433a9;hp=3496e0edad09355c7c382b7dc3fe0ff41d6b8464;hpb=b359511572b5dcd67dc17437e7ce4ca3574eada8;p=spider.git diff --git a/perl/DXXml/Text.pm b/perl/DXXml/Text.pm index 3496e0ed..3b8b5b44 100644 --- a/perl/DXXml/Text.pm +++ b/perl/DXXml/Text.pm @@ -1,7 +1,7 @@ # # XML Text handler # -# $Id$ +# # # Copyright (c) Dirk Koopman, G1TLH # @@ -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 @@ -45,9 +40,9 @@ sub topcxx my $dxchan = shift; my @out; - my $ref = DXUser->get_current($self->{to}); - while (@_) { - my $line = shift; + my $ref = DXUser::get_current($self->{to}); + 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) {