4 # Copyright (c) 2001 Dirk Koopman G1TLH
8 my ($self, $line) = @_;
9 my @args = split /\s+/, $line;
11 # my $priv = shift @args;
16 if ($self->priv < 9) {
17 Log('DXCommand', $self->call . " attempted to register @args");
18 return (1, $self->msg('e5'));
20 #return (1, $self->msg('reginac')) unless $main::reqreg;
22 foreach $call (@args) {
24 unless ($self->remotecmd || $self->inscript) {
25 if ($ref = DXUser::get_current($call)) {
28 push @out, $self->msg("reg", $call);
30 $ref = DXUser->new($call);
33 push @out, $self->msg("regc", $call);
35 my $dxchan = DXChannel::get($call);
36 $dxchan->registered(1) if $dxchan;
37 Log('DXCommand', $self->call . " registered $call");
39 Log('DXCommand', $self->call . " attempted to register $call remotely");
40 push @out, $self->msg('sorry');