From 7324b329dee26fd429033f85c1ec06e799b07994 Mon Sep 17 00:00:00 2001 From: Giuseppe Bilotta Date: Tue, 10 Feb 2009 01:19:03 +0100 Subject: [PATCH] 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. --- data/rbot/plugins/geoip.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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=" -- 2.39.5