6 # Copyright (c) Dirk Koopman, G1TLH
25 if ($self->{to} eq $main::mycall) {
26 my $tochan = DXChannel::get($self->{u} || $main::myalias);
28 $tochan->send($self->tocmd);
30 dbg("no user or $main::myalias not online") if isdbg('chanerr');
33 $self->route($dxchan);
43 my $ref = DXUser::get_current($self->{to});
44 for (split /(?:%0D)?\%0A/, $self->{content}) {
47 Log('rcmd', 'out', $self->{to}, $line);
48 if ($self->{u} && $dxchan->is_clx && $ref->is_clx) {
49 push @out, DXProt::pc85($main::mycall, $self->{to}, $self->{u}, "$main::mycall:$line");
51 push @out, DXProt::pc35($main::mycall, $self->{to}, "$main::mycall:$line");
55 return $self->{'-pcxx'} = \@out;
62 my @out = split /(?:%0D)?\%0A/, $self->{content};
63 return $self->{-cmd} = \@out;