summaryrefslogtreecommitdiff
path: root/src/char/geoip.c
diff options
context:
space:
mode:
authorHaruna <haru@dotalux.com>2014-11-15 17:04:09 +0100
committerHaruna <haru@dotalux.com>2014-11-15 17:04:09 +0100
commita6f077063eeff08ee27ae5170de1bb5cf4b2defb (patch)
tree9bb5ab158230301e604918883ce6d06c31890341 /src/char/geoip.c
parent77b88fe80b907122b24d698938538c22e029d25f (diff)
parent7f9fa7f59a82682fb139be4301e9a12a99644a19 (diff)
downloadhercules-a6f077063eeff08ee27ae5170de1bb5cf4b2defb.tar.gz
hercules-a6f077063eeff08ee27ae5170de1bb5cf4b2defb.tar.bz2
hercules-a6f077063eeff08ee27ae5170de1bb5cf4b2defb.tar.xz
hercules-a6f077063eeff08ee27ae5170de1bb5cf4b2defb.zip
Merge pull request #388 from 4144/charplugins
char server plugins
Diffstat (limited to 'src/char/geoip.c')
-rw-r--r--src/char/geoip.c32
1 files changed, 32 insertions, 0 deletions
diff --git a/src/char/geoip.c b/src/char/geoip.c
new file mode 100644
index 000000000..9a78c1ebd
--- /dev/null
+++ b/src/char/geoip.c
@@ -0,0 +1,32 @@
+// Copyright (c) Hercules Dev Team, licensed under GNU GPL.
+// See the LICENSE file
+// Portions Copyright (c) Athena Dev Teams
+
+#define HERCULES_CORE
+
+#include "geoip.h"
+
+#include <stdlib.h>
+
+#include "../common/cbasetypes.h"
+#include "../common/mmo.h"
+#include "../common/random.h"
+#include "../common/showmsg.h"
+#include "../common/socket.h"
+#include "../common/strlib.h"
+
+struct s_geoip geoip_data;
+
+const char* geoip_getcountry(uint32 ipnum);
+void geoip_final(bool shutdown);
+void geoip_init(void);
+
+void geoip_defaults(void) {
+ geoip = &geoip_s;
+
+ geoip->data = &geoip_data;
+
+ geoip->getcountry = geoip_getcountry;
+ geoip->final = geoip_final;
+ geoip->init = geoip_init;
+}