'domsvc' => $new->domsvc,
} );
{
- no warnings 'numeric';
+ #no warnings 'numeric'; #alas, a 5.006-ism
+ local($^W) = 0;
return "Can't change uid!" if $old->uid != $new->uid;
}
sub suspend {
my $self = shift;
my %hash = $self->hash;
- unless ( $hash{_password} =~ /^\*SUSPENDED\* / ) {
+ unless ( $hash{_password} =~ /^\*SUSPENDED\* /
+ || $hash{_password} eq '*'
+ ) {
$hash{_password} = '*SUSPENDED* '.$hash{_password};
my $new = new FS::svc_acct ( \%hash );
$new->replace($self);
=head1 VERSION
-$Id: svc_acct.pm,v 1.57 2001-12-19 14:30:12 ivan Exp $
+$Id: svc_acct.pm,v 1.60 2001-12-20 02:09:52 ivan Exp $
=head1 BUGS