diff options
author | Giuseppe Bilotta <giuseppe.bilotta@gmail.com> | 2009-02-10 01:19:03 +0100 |
---|---|---|
committer | Giuseppe Bilotta <giuseppe.bilotta@gmail.com> | 2009-02-10 01:19:03 +0100 |
commit | 7324b329dee26fd429033f85c1ec06e799b07994 (patch) | |
tree | 6ddb9e4dfb19ec342b5e4e774646e08bd80c1c25 | |
parent | 5aa8e259191ffc0551dd77b67a77e34c8bd8aa42 (diff) |
geoip: make the GeoIP module a standalone
The geoip plugin defines and makes use of a GeoIP module to handle the
actual geoip data retrieval. The module used to be defined in the same
namespace as the plugin, and therefore in a barely accessible anonymous
module.
Move the GeoIP module to the outermost namespace to allow it to be
accessible from scripts and plugins too.
-rwxr-xr-x | data/rbot/plugins/geoip.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/data/rbot/plugins/geoip.rb b/data/rbot/plugins/geoip.rb index 6cf0d993..61551172 100755 --- a/data/rbot/plugins/geoip.rb +++ b/data/rbot/plugins/geoip.rb @@ -9,7 +9,7 @@ # # Resolves the geographic locations of users (network-wide) and IP addresses -module GeoIP +module ::GeoIP class InvalidHostError < RuntimeError; end GEO_IP_PRIMARY = "http://lakka.kapsi.fi:40086/lookup.yaml?host=" |