2 # unset a user's password
4 # Copyright (c) 2001 Dirk Koopman G1TLH
6 # Syntax: unset/pass <callsign> ...
9 my ($self, $line) = @_;
10 my @args = split /\s+/, $line;
15 if ($self->remotecmd || $self->inscript) {
16 Log('DXCommand', $self->call . " attempted to unset password for @args remotely");
17 return (1, $self->msg('e5'));
20 if ($self->priv < 9) {
21 Log('DXCommand', $self->call . " attempted to unset password for @args");
22 return (1, $self->msg('e5'));
27 if ($ref = DXUser::get_current($call)) {
30 push @out, $self->msg("passwordu", $call);
31 Log('DXCommand', $self->call . " unset password for $call");
33 push @out, $self->msg('e3', 'User record for', $call);