From d53c6bd649c5e36ca2b7a780ebbce657f90667fd Mon Sep 17 00:00:00 2001 From: minima Date: Tue, 30 Dec 2003 21:46:00 +0000 Subject: [PATCH] changed dx by to require at least privilege 1 --- Changes | 1 + cmd/dx.pl | 1 + 2 files changed, 2 insertions(+) diff --git a/Changes b/Changes index 6dac2401..b964b29d 100644 --- a/Changes +++ b/Changes @@ -3,6 +3,7 @@ wot Charlie said...). 2. made the changes to the German Messages that Thomas DL3SBB sent me a loooong time ago. +3. made 'dx by' require at least privilege 1. 29Dec03======================================================================= 1. updated dxoldtonew.pl so that it takes an AK1A DX.DAT file (argument on command line or a default of /spider/data/DX.DAT and outputs the standard diff --git a/cmd/dx.pl b/cmd/dx.pl index 20046781..ce0c304f 100644 --- a/cmd/dx.pl +++ b/cmd/dx.pl @@ -34,6 +34,7 @@ return (1, $self->msg('dx2')) unless @f >= 2; # can be in any order if ($f[0] =~ /^by$/i) { + return (1, $self->msg('e5')) unless $self->priv; $spotter = uc $f[1]; $line =~ s/^\s*\Q$f[0]\s+\Q$f[1]\s+//; $line = $f[2]; -- 2.34.1