6 # Copyright (c) Dirk Koopman, G1TLH
17 use Time::HiRes qw(gettimeofday tv_interval);
19 use vars qw($VERSION $BRANCH @ISA %pings);
20 $VERSION = sprintf( "%d.%03d", q$Revision$ =~ /(\d+)\.(\d+)/ );
21 $BRANCH = sprintf( "%d.%03d", q$Revision$ =~ /\d+\.\d+\.(\d+)\.(\d+)/ || (0,0));
22 $main::build += $VERSION;
23 $main::branch += $BRANCH;
32 # this is always routed
33 if ($self->{to} eq $main::mycall ) {
34 my $r = DXChannel::get($main::myalias);
37 $self->route($dxchan);
47 my $ref = DXUser->get_current($self->{to});
51 Log('rcmd', 'out', $self->{to}, $line);
52 if ($self->{u} && $dxchan->is_clx && $ref->is_clx) {
53 push @out, pc85($main::mycall, $self->{to}, $self->{u}, "$main::mycall:$line");
55 push @out, pc35($main::mycall, $self->{to}, "$main::mycall:$line");
59 return $self->{'-pcxx'} = \@out;
66 my @out = split /(?:%0D)?\%0A/, $self->{content};
67 return $self->{-cmd} = \@out;