summaryrefslogtreecommitdiff
path: root/src/map/map.h
diff options
context:
space:
mode:
authorMadCamel <madcamel@gmail.com>2010-10-08 06:11:42 -0400
committerMadCamel <madcamel@gmail.com>2010-10-08 06:11:42 -0400
commit2239ad20a1420686bd58349ae4e364ecbc30d871 (patch)
tree61d81acdecf7a1a92a9dc398d4873d9a9b6a9f89 /src/map/map.h
parent0a719c5441ddc14fad483e679edea900cd1e3789 (diff)
downloadtmwa-2239ad20a1420686bd58349ae4e364ecbc30d871.tar.gz
tmwa-2239ad20a1420686bd58349ae4e364ecbc30d871.tar.bz2
tmwa-2239ad20a1420686bd58349ae4e364ecbc30d871.tar.xz
tmwa-2239ad20a1420686bd58349ae4e364ecbc30d871.zip
map-server now stores IP address in session_data when player connects
This is to be used for @ipcheck, sending GMs IP identifiers, and clone blocking.
Diffstat (limited to 'src/map/map.h')
-rw-r--r--src/map/map.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/map/map.h b/src/map/map.h
index 9934fdf..dde7d7f 100644
--- a/src/map/map.h
+++ b/src/map/map.h
@@ -6,6 +6,7 @@
#include <stdarg.h>
#include <time.h>
#include <sys/time.h>
+#include <netinet/in.h>
#include "mmo.h"
#ifndef MAX
@@ -400,6 +401,8 @@ struct map_session_data
unsigned int flood_rates[0x220];
time_t packet_flood_reset_due;
int packet_flood_in;
+
+ in_addr_t ip;
};
struct npc_timerevent_list