1
0
Fork 0
mirror of https://github.com/perlbot/perlbuut synced 2025-06-08 19:05:45 -04:00

fixed up geoip stuff. it always breaks

This commit is contained in:
Ryan Voots 2012-09-17 02:41:02 -04:00
parent c470d91c4b
commit e0cfbdb1fc

View file

@ -4,8 +4,10 @@ no warnings 'void', 'once';
sub {
my( $said, $pm ) = @_;
$Geo::IP::PP_OPEN_TYPE_PATH = "/home/simcop2387/geoip/";
my $gi = Geo::IP->open_type(GEOIP_CITY_EDITION_REV0, GEOIP_STANDARD);
# $Geo::IP::PP_OPEN_TYPE_PATH = "/usr/share/GeoIP/";
# my $gi = Geo::IP->open_type(GEOIP_CITY_EDITION_REV0, GEOIP_STANDARD);
my $gi = Geo::IP->open("/usr/share/GeoIP/GeoIP.dat", GEOIP_STANDARD);
print "Record for $said->{body}: ";