From 4d16b9856124735ac884d56fa44e05a5d379879c Mon Sep 17 00:00:00 2001 From: Ryan Voots Date: Mon, 17 Sep 2012 02:41:02 -0400 Subject: [PATCH] fixed up geoip stuff. it always breaks --- plugins/geoip.pm | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/plugins/geoip.pm b/plugins/geoip.pm index c3d3dce..8859b53 100644 --- a/plugins/geoip.pm +++ b/plugins/geoip.pm @@ -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}: ";