X-Git-Url: http://www.dxcluster.org/gitweb/gitweb.cgi?a=blobdiff_plain;f=perl%2FDXXml%2FText.pm;h=3496e0edad09355c7c382b7dc3fe0ff41d6b8464;hb=b359511572b5dcd67dc17437e7ce4ca3574eada8;hp=a08cbda0ded9623ec17ac12095956f786a61e868;hpb=7858cc043933ba59f692637d6ef1d08b4c7b5681;p=spider.git diff --git a/perl/DXXml/Text.pm b/perl/DXXml/Text.pm index a08cbda0..3496e0ed 100644 --- a/perl/DXXml/Text.pm +++ b/perl/DXXml/Text.pm @@ -12,9 +12,7 @@ package DXXml::Text; use DXDebug; use DXProt; -use IsoTime; -use Investigate; -use Time::HiRes qw(gettimeofday tv_interval); +use DXLog; use vars qw($VERSION $BRANCH @ISA %pings); $VERSION = sprintf( "%d.%03d", q$Revision$ =~ /(\d+)\.(\d+)/ ); @@ -32,8 +30,7 @@ sub handle_input if ($self->{to} eq $main::mycall) { my $tochan = DXChannel::get($self->{u} || $main::myalias); if ($tochan) { - my $ref = $self->tocmd; - $tochan->send($_) for (ref $ref ? @$ref : $ref); + $tochan->send($self->tocmd); } else { dbg("no user or $main::myalias not online") if isdbg('chanerr'); } @@ -54,9 +51,9 @@ sub topcxx $line =~ s/\s*$//; Log('rcmd', 'out', $self->{to}, $line); if ($self->{u} && $dxchan->is_clx && $ref->is_clx) { - push @out, pc85($main::mycall, $self->{to}, $self->{u}, "$main::mycall:$line"); + push @out, DXProt::pc85($main::mycall, $self->{to}, $self->{u}, "$main::mycall:$line"); } else { - push @out, pc35($main::mycall, $self->{to}, "$main::mycall:$line"); + push @out, DXProt::pc35($main::mycall, $self->{to}, "$main::mycall:$line"); } }