X-Git-Url: http://gb7djk.dxcluster.net/gitweb/gitweb.cgi?a=blobdiff_plain;f=cmd%2Fset%2Fbadip.pl;h=1ed8225adb050de98ac87e7d388860c8785125e6;hb=4dcd43a5029c8908cb1de3aff459f121496a9a7e;hp=3c4578ba444caf8c59796c36ef253691a61e6006;hpb=996fed89967a1fd4d8665a10fd73b9612aeb1606;p=spider.git diff --git a/cmd/set/badip.pl b/cmd/set/badip.pl index 3c4578ba..1ed8225a 100644 --- a/cmd/set/badip.pl +++ b/cmd/set/badip.pl @@ -9,6 +9,8 @@ my ($self, $line) = @_; return (1, $self->msg('e5')) if $self->remotecmd; # are we permitted? return (1, $self->msg('e5')) if $self->priv < 6; +return (1, q{Please install Net::CIDR::Lite or libnet-cidr-lite-perl to use this command}) unless $DXCIDR::active; + my @out; my @added; my @in = split /\s+/, $line; @@ -31,6 +33,7 @@ for my $ip (@in) { my $count = @added; my $list = join ' ', @in; DXCIDR::clean_prep(); +#$DB::single = 1; DXCIDR::append($suffix, @added); push @out, "set/badip: added $count entries to badip.$suffix : $list" if $count; return (1, @out);