changed dx by to require at least privilege 1
authorminima <minima>
Tue, 30 Dec 2003 21:46:00 +0000 (21:46 +0000)
committerminima <minima>
Tue, 30 Dec 2003 21:46:00 +0000 (21:46 +0000)
Changes
cmd/dx.pl

diff --git a/Changes b/Changes
index 6dac240189e75075ead2455c2a76361be8d62780..b964b29deeab3cbd1a709e432999fbc656316746 100644 (file)
--- 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
index 20046781a68f27f6f45f293c3bdf15b67a258e61..ce0c304fe87705be7194f66d46a2f1ee1e95f112 100644 (file)
--- 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];