spider/cmd/dbremove.pl
djk 9e2fbafcfd 5. Only wonder down the msg queue every minute
6. Put in the initial DB code (at last), you can create and remove local and
standard remote dbs, you can import AK1A style .FUL ascii databases, you can
enquire on a local or remote database.
7. A return ping to a node will clear down all outstanding pings to
that node (which might cause some confusion if more then one ping is
outstanding for a node, but then - shit happens)
1999-11-08 00:45:20 +00:00

19 lines
354 B
Perl

#!/usr/bin/perl
#
# Database update routine
#
# Copyright (c) 1999 Dirk Koopman G1TLH
#
my ($self, $line) = @_;
my ($name) = split /\s+/, $line;
my @out;
return (1, $self->msg('e5')) if $self->priv < 9;
my $db = DXDb::getdesc($name);
return (1, $self->msg('db3', $name)) unless $db;
$db->delete;
push @out, $self->msg('db9', $name);
return (1, @out);