X-Git-Url: http://gb7djk.dxcluster.net/gitweb/gitweb.cgi?a=blobdiff_plain;f=perl%2Flock_nodes.pl;h=92878a7dfb7939995cb6b4c34bd8892ca41e33dd;hb=14fa5913c9b5be9f55ef741236aaafbe516f64fe;hp=9480c4812d97fbf528f72f2ce3c47dabb7b19c3d;hpb=83e360f5c54444dc63a14de5124ad0a78624bf5a;p=spider.git diff --git a/perl/lock_nodes.pl b/perl/lock_nodes.pl index 9480c481..92878a7d 100755 --- a/perl/lock_nodes.pl +++ b/perl/lock_nodes.pl @@ -1,4 +1,4 @@ -#!/usr/bin/perl +#!/bin/env perl # # remove all records with the sysop/cluster callsign and recreate # it from the information contained in DXVars @@ -10,7 +10,7 @@ # # Copyright (c) 1998 Dirk Koopman G1TLH # -# $Id$ +# # # make sure that modules are searched in the order local then perl @@ -45,7 +45,7 @@ my @ignore; my ($action, $key, $data) = (0,0,0); for ($action = DXUser::R_FIRST, $count = 0; !$DXUser::dbm->seq($key, $data, $action); $action = DXUser::R_NEXT) { if ($data =~ m{sort => '[ACRSX]'}) { - my $user = DXUser->get($key); + my $user = DXUser::get($key); if ($user->is_node) { $nodes ++; if (grep $key eq $_, (@nodes, $mycall)) {