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 unregister @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 my $dxchan = DXChannel::get($call);
29 $dxchan->registered(0) if $dxchan;
30 push @out, $self->msg("regun", $call);
31 Log('DXCommand', $self->call . " unregistered $call");
33 push @out, $self->msg('e3', 'unset/register', $call);
36 Log('DXCommand', $self->call . " attempted to unregister $call remotely");
37 push @out, $self->msg('sorry');