2 # set a user's password
4 # Copyright (c) 1998 Iain Phillips G0RDI
7 # Syntax: set/pass <callsign> <password>
10 my ($self, $line) = @_;
11 my @args = split /\s+/, $line;
12 my $call = shift @args;
17 return (1, $self->msg('e5')) if $self->priv < 9;
19 if ($ref = DXUser->get_current($call)) {
20 $line =~ s/^\s*$call\s+//;
21 $line =~ s/\s+//og; # remove any blanks
22 $line =~ s/[{}]//g; # no braces allowed
25 push @out, $self->msg("password", $call);
27 push @out, $self->msg('e3', 'User record for', $call);