mirror of
https://github.com/perlbot/perlbuut
synced 2025-06-09 11:35:40 -04:00
fixed up geoip stuff. it always breaks
This commit is contained in:
parent
995399c27c
commit
4d16b98561
1 changed files with 4 additions and 2 deletions
|
@ -4,8 +4,10 @@ no warnings 'void', 'once';
|
||||||
|
|
||||||
sub {
|
sub {
|
||||||
my( $said, $pm ) = @_;
|
my( $said, $pm ) = @_;
|
||||||
$Geo::IP::PP_OPEN_TYPE_PATH = "/home/simcop2387/geoip/";
|
# $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_type(GEOIP_CITY_EDITION_REV0, GEOIP_STANDARD);
|
||||||
|
my $gi = Geo::IP->open("/usr/share/GeoIP/GeoIP.dat", GEOIP_STANDARD);
|
||||||
|
|
||||||
|
|
||||||
print "Record for $said->{body}: ";
|
print "Record for $said->{body}: ";
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue