]> ruin.nu Git - ndwebbie.git/blobdiff - scripts/fetchdumps.pl
LWP::Simple fix for cloudfare
[ndwebbie.git] / scripts / fetchdumps.pl
index 0d71aeaf6159504f61ff91afcab182fab205e0bb..883c90f37c2a3edb4822c27d9ea913a91c9b6591 100755 (executable)
@@ -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;
 }