X-Git-Url: http://gb7djk.dxcluster.net/gitweb/gitweb.cgi?a=blobdiff_plain;f=perl%2Flock_nodes.pl;h=0afad397684ade63d3cac25c0d902cff821cebfa;hb=68fa2f8ae34d78464cb196851a7ce09ebef61b1b;hp=d57a6a0a4680032633590fd65ca52d993f21ac2c;hpb=fd0a34c34ad4112ee21e0730f7307498ff437e18;p=spider.git diff --git a/perl/lock_nodes.pl b/perl/lock_nodes.pl index d57a6a0a..0afad397 100755 --- a/perl/lock_nodes.pl +++ b/perl/lock_nodes.pl @@ -1,4 +1,4 @@ -#!/usr/bin/perl +#!/usr/bin/env perl # # remove all records with the sysop/cluster callsign and recreate # it from the information contained in DXVars @@ -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)) {