Prepare for git repository
[spider.git] / perl / DXXml / Text.pm
index 3496e0edad09355c7c382b7dc3fe0ff41d6b8464..2410824ff6b7591da4bb162bdfd292127449e089 100644 (file)
@@ -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 %pings);
 @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) {