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:
parent
c470d91c4b
commit
e0cfbdb1fc
1 changed files with 4 additions and 2 deletions
|
@ -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}: ";
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue