From 2ac8a6597f7c7bd34a8e191f5b357d638815cdc4 Mon Sep 17 00:00:00 2001 From: David Anderson Date: Fri, 19 Jan 2007 02:28:56 +0000 Subject: [PATCH] added identifier to geoip, fixed native names --HG-- extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40325 --- plugins/include/geoip.inc | 28 +++++++++++++++++++++++++--- 1 file changed, 25 insertions(+), 3 deletions(-) diff --git a/plugins/include/geoip.inc b/plugins/include/geoip.inc index aa82ac98..3ba6f227 100644 --- a/plugins/include/geoip.inc +++ b/plugins/include/geoip.inc @@ -7,6 +7,8 @@ #endif #define _geoip_included +#include + /** * @GLOBAL@ * IP address can contain ports, the ports will be stripped out. @@ -19,7 +21,7 @@ * @param ccode Destination string buffer to store the code. * @noreturn */ -native Geoip_Code2(const String:ip[], String:ccode[3]); +native GeoipCode2(const String:ip[], String:ccode[3]); /** * Gets the three character country code from an IP address. (USA, CAN, etc) @@ -28,7 +30,7 @@ native Geoip_Code2(const String:ip[], String:ccode[3]); * @param ccode Destination string buffer to store the code. * @noreturn */ -native Geoip_Code3(const String:ip[], String:ccode[4]); +native GeoipCode3(const String:ip[], String:ccode[4]); /** * Gets the full country name. (max length of output string is 45) @@ -38,4 +40,24 @@ native Geoip_Code3(const String:ip[], String:ccode[4]); * @param len Maximum length of output string buffer. * @noreturn */ -native Geoip_Country(const String:ip[], String:name[], len=45); +native GeoipCountry(const String:ip[], String:name[], len=45); + +/** + * Do not edit below this line! + */ +public Extension:__ext_geoip = +{ + name = "GeoIP", + file = "geoip.ext", +#if defined AUTOLOAD_EXTENSIONS + autoload = 1, +#else + autoload = 0, +#endif +#if defined REQUIRE_EXTENSIONS + required = 1, +#else + required = 0, +#endif +}; +