2 # kill or delete a message
4 # Copyright (c) Dirk Koopman G1TLH
9 my ($self, $line) = @_;
10 my @f = split /\s+/, $line;
15 my $call = $self->call;
20 $ref = DXMsg::get($msgno);
22 push @out, "Msg $msgno not found";
25 if ($self->priv < 5 &&
26 (($ref->private && $ref->to ne $self->call && $ref->from ne $self->call) ||
27 ($ref->private == 0 && $ref->from ne $self->call))) {
28 push @out, "Msg $msgno not available";
31 Log('msg', "Message $ref->{msgno} from $ref->{from} to $ref->{to} deleted by $call");
33 push @out, "Message $msgno deleted";