From a56b3ea671e9cc74b3f9ea723bc149e83212b998 Mon Sep 17 00:00:00 2001 From: gumi Date: Sun, 30 Dec 2018 16:06:06 -0500 Subject: pre-send the auth details to map servers instead of blindly trusting 0x0072 --- src/map/map.hpp | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'src/map/map.hpp') diff --git a/src/map/map.hpp b/src/map/map.hpp index 24037e9..2f6ef21 100644 --- a/src/map/map.hpp +++ b/src/map/map.hpp @@ -584,6 +584,12 @@ void map_log(XString line); #define MAP_LOG(format, ...) \ map_log(STRPRINTF(format, ## __VA_ARGS__)) +#define MAP_LOG_AND_ECHO(...) \ + do { \ + PRINTF(__VA_ARGS__); \ + MAP_LOG(__VA_ARGS__); \ + } while (0) + #define MAP_LOG_PC(sd, fmt, ...) \ MAP_LOG("PC%d %s:%d,%d " fmt, \ sd->status_key.char_id, (sd->bl_m->name_), sd->bl_x, sd->bl_y, ## __VA_ARGS__) @@ -692,5 +698,14 @@ struct charid2nick CharName nick; int req_id; }; + +struct AuthFifoEntry +{ + AccountId account_id; + CharId char_id; + int login_id1, login_id2; + IP4Address ip; + int delflag; +}; } // namespace map } // namespace tmwa -- cgit v1.2.3-70-g09d2