summaryrefslogtreecommitdiff
path: root/src/login/login.c
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-12-07 18:36:03 +0300
committerAndrei Karas <akaras@inbox.ru>2017-12-08 18:31:22 +0300
commit8e14bc77651240142bc345b90a9d2f2c097cfa50 (patch)
tree733be5b860d274f3e53ac1dc5a49678b8e2cd671 /src/login/login.c
parent9c92e7993c65d927aec070fa9826f96235579482 (diff)
downloadhercules-8e14bc77651240142bc345b90a9d2f2c097cfa50.tar.gz
hercules-8e14bc77651240142bc345b90a9d2f2c097cfa50.tar.bz2
hercules-8e14bc77651240142bc345b90a9d2f2c097cfa50.tar.xz
hercules-8e14bc77651240142bc345b90a9d2f2c097cfa50.zip
Update 0x0ae3 packet for new zero clients.
Old packet look like worked too, because this is fake packet, but better send it in correct way.
Diffstat (limited to 'src/login/login.c')
-rw-r--r--src/login/login.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/login/login.c b/src/login/login.c
index 1c1d69250..a78276051 100644
--- a/src/login/login.c
+++ b/src/login/login.c
@@ -1365,7 +1365,15 @@ bool login_client_login_otp(int fd, struct login_session_data *sd)
{
// send ok response with fake token
#ifdef PACKETVER_ZERO
-#if PACKETVER >= 20171123
+#if PACKETVER >= 20171127
+ WFIFOHEAD(fd, 33);
+ WFIFOW(fd, 0) = 0x0ae3;
+ WFIFOW(fd, 2) = 33; // len
+ WFIFOL(fd, 4) = 0; // normal login
+ safestrncpy(WFIFOP(fd, 8), "S1000", 6);
+ safestrncpy(WFIFOP(fd, 28), "token", 6);
+ WFIFOSET(fd, 33);
+#elif PACKETVER >= 20171123
WFIFOHEAD(fd, 19);
WFIFOW(fd, 0) = 0x0ae3;
WFIFOW(fd, 2) = 19; // len