X-Git-Url: https://ruin.nu/git/?a=blobdiff_plain;f=scripts%2Ffetchdumps.pl;h=883c90f37c2a3edb4822c27d9ea913a91c9b6591;hb=e71f5648d2823f89024c52b77f9ab04d23a75a2d;hp=0d71aeaf6159504f61ff91afcab182fab205e0bb;hpb=d1d9b988b4b9921e707b36d81ed2dfddb77188d8;p=ndwebbie.git diff --git a/scripts/fetchdumps.pl b/scripts/fetchdumps.pl index 0d71aea..883c90f 100755 --- a/scripts/fetchdumps.pl +++ b/scripts/fetchdumps.pl @@ -22,10 +22,12 @@ q{ use strict; use warnings; +use local::lib; use DBI; use DBD::Pg qw(:pg_types); -use LWP::Simple; +use LWP::Simple qw/head get $ua/; +$ua->agent("Stupid user agent check is stupid"); use FindBin; use lib "$FindBin::Bin/../lib"; @@ -58,7 +60,7 @@ if ($updated){ `perl $FindBin::Bin/parsegalaxies.pl $updated`; `perl $FindBin::Bin/ndrank.pl`; $dbh->do(q{UPDATE misc SET value = ? WHERE id = 'TICK'}, undef, $updated); - system 'killall','-USR1', 'irssi'; + system 'killall','-USR1', 'ndbot.pl'; local $dbh->{Warn} = 0; }