1
0
mirror of https://github.com/unrealircd/unrealircd.git synced 2026-07-03 20:43:12 +02:00

Add geoip_base module, which sets "geo_country" if a geo provider

module is able to lookup the IP and return a country.

Also consistently use geoip_ and GEOIP_ prefixes.
This commit is contained in:
Bram Matthys
2021-08-17 15:24:25 +02:00
parent 0bbad85f84
commit 2ea75dfbdb
7 changed files with 111 additions and 11 deletions
+1 -1
View File
@@ -1129,4 +1129,4 @@ extern char *timestamp_iso8601(time_t v);
/* end of logging */
extern void add_fake_lag(Client *client, long msec);
extern char *prefix_with_extban(char *remainder, BanContext *b, Extban *extban, char *buf, size_t buflen);
extern char *geo_lookup(char *ip);
extern char *geoip_lookup_country(char *ip);
+1 -1
View File
@@ -2272,7 +2272,7 @@ _UNREAL_ERROR(_hook_error_incompatible, "Incompatible hook function. Check argum
#define CALLBACKTYPE_CLOAK_EX 3
#define CALLBACKTYPE_BLACKLIST_CHECK 4
#define CALLBACKTYPE_REPUTATION_STARTTIME 5
#define CALLBACKTYPE_GEO_LOOKUP 6
#define CALLBACKTYPE_GEOIP_LOOKUP 6
/* To add a new efunction, only if you are an UnrealIRCd coder:
* 1) Add a new entry here