X-Git-Url: http://gb7djk.dxcluster.net/gitweb/gitweb.cgi?a=blobdiff_plain;ds=sidebyside;f=perl%2Flock_nodes.pl;h=92878a7dfb7939995cb6b4c34bd8892ca41e33dd;hb=14fa5913c9b5be9f55ef741236aaafbe516f64fe;hp=d57a6a0a4680032633590fd65ca52d993f21ac2c;hpb=fd0a34c34ad4112ee21e0730f7307498ff437e18;p=spider.git diff --git a/perl/lock_nodes.pl b/perl/lock_nodes.pl index d57a6a0a..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 @@ -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)) {