X-Git-Url: http://dxcluster.net/gitweb/gitweb.cgi?a=blobdiff_plain;ds=sidebyside;f=cmd%2Fdelete%2Fusdb.pl;fp=cmd%2Fdelete%2Fusdb.pl;h=e6f1a57f4a062c6f619e323fc67342ccb5764186;hb=973a2853ac360d77e8bc6382450c0a9e11da1f52;hp=0000000000000000000000000000000000000000;hpb=81f141825cc8846f0e496ebf602e8e6536476b82;p=spider.git diff --git a/cmd/delete/usdb.pl b/cmd/delete/usdb.pl new file mode 100644 index 00000000..e6f1a57f --- /dev/null +++ b/cmd/delete/usdb.pl @@ -0,0 +1,25 @@ +# +# delete a usdb entry +# +# Please note that this may screw up everything to do with +# spotting onwards +# +# Copyright (c) 2002 - Dirk Koopman G1TLH +# +# $Id$ +# + +my ($self, $line) = @_; +my @args = split /\s+/, $line; +my $call; +my @out; +my $user; + +return (1, $self->msg('e5')) if $self->priv < 9; + +foreach $call (@args) { + USDB::del($call); + push @out, $self->msg('susdb4', $call); + Log('DXCommand', $self->msg('susdb4', $call)); +} +return (1, @out);