From a6f6b34df65d36fb7609b93c2305c8507dc79e8d Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Thu, 28 Jun 2018 00:00:13 +0300 Subject: Add support for new auth error packet in zero. Add support for known auth error packets in map server (before was used only old packet). --- src/login/lclif.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/login/lclif.c') diff --git a/src/login/lclif.c b/src/login/lclif.c index ae9f035e3..f514932a2 100644 --- a/src/login/lclif.c +++ b/src/login/lclif.c @@ -311,7 +311,10 @@ bool lclif_send_server_list(struct login_session_data *sd) /// @copydoc lclif_interface::auth_failed() void lclif_send_auth_failed(int fd, time_t ban, uint32 error) { -#if PACKETVER >= 20120000 /* not sure when this started */ +#if PACKETVER_ZERO_NUM >= 20180627 + struct packet_AC_REFUSE_LOGIN_R2 *packet = NULL; + int packet_id = PACKET_ID_AC_REFUSE_LOGIN_R3; +#elif PACKETVER >= 20101123 struct packet_AC_REFUSE_LOGIN_R2 *packet = NULL; int packet_id = PACKET_ID_AC_REFUSE_LOGIN_R2; #else -- cgit v1.2.3-60-g2f50