summaryrefslogtreecommitdiff
path: root/src/login
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2018-06-28 00:00:13 +0300
committerAndrei Karas <akaras@inbox.ru>2018-06-29 19:47:42 +0300
commita6f6b34df65d36fb7609b93c2305c8507dc79e8d (patch)
tree565ad0b38e5a1ce9228e57b735777debf26fc747 /src/login
parent6fa931559839564a3ddf21587c2d4322cc28fda4 (diff)
downloadhercules-a6f6b34df65d36fb7609b93c2305c8507dc79e8d.tar.gz
hercules-a6f6b34df65d36fb7609b93c2305c8507dc79e8d.tar.bz2
hercules-a6f6b34df65d36fb7609b93c2305c8507dc79e8d.tar.xz
hercules-a6f6b34df65d36fb7609b93c2305c8507dc79e8d.zip
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).
Diffstat (limited to 'src/login')
-rw-r--r--src/login/lclif.c5
-rw-r--r--src/login/lclif.p.h1
2 files changed, 5 insertions, 1 deletions
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
diff --git a/src/login/lclif.p.h b/src/login/lclif.p.h
index 6456914db..7fa8475f4 100644
--- a/src/login/lclif.p.h
+++ b/src/login/lclif.p.h
@@ -64,6 +64,7 @@ enum login_packet_id {
PACKET_ID_SC_NOTIFY_BAN = 0x0081,
PACKET_ID_AC_ACK_HASH = 0x01dc,
PACKET_ID_AC_REFUSE_LOGIN_R2 = 0x083e,
+ PACKET_ID_AC_REFUSE_LOGIN_R3 = 0x0b02,
};
/* Packets Structs */