6 # Copyright (c) Dirk Koopman, G1TLH
17 use vars qw($VERSION $BRANCH @ISA %pings);
18 $VERSION = sprintf( "%d.%03d", q$Revision$ =~ /(\d+)\.(\d+)/ );
19 $BRANCH = sprintf( "%d.%03d", q$Revision$ =~ /\d+\.\d+\.(\d+)\.(\d+)/ || (0,0));
20 $main::build += $VERSION;
21 $main::branch += $BRANCH;
30 if ($self->{to} eq $main::mycall) {
31 my $tochan = DXChannel::get($self->{u} || $main::myalias);
33 $tochan->send($self->tocmd);
35 dbg("no user or $main::myalias not online") if isdbg('chanerr');
38 $self->route($dxchan);
48 my $ref = DXUser->get_current($self->{to});
52 Log('rcmd', 'out', $self->{to}, $line);
53 if ($self->{u} && $dxchan->is_clx && $ref->is_clx) {
54 push @out, DXProt::pc85($main::mycall, $self->{to}, $self->{u}, "$main::mycall:$line");
56 push @out, DXProt::pc35($main::mycall, $self->{to}, "$main::mycall:$line");
60 return $self->{'-pcxx'} = \@out;
67 my @out = split /(?:%0D)?\%0A/, $self->{content};
68 return $self->{-cmd} = \@out;