From 8d7121b69613e72e70acf0c272dcead070def769 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Mon, 12 Sep 2016 17:57:04 +0300 Subject: Dont send packet 0x9cb to old clients. --- src/emap/clif.c | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/src/emap/clif.c b/src/emap/clif.c index d3bf523..8bff4c7 100644 --- a/src/emap/clif.c +++ b/src/emap/clif.c @@ -465,6 +465,18 @@ bool eclif_send_pre(const void **bufPtr, return true; } } + if (packet == 0x9cb) + { + struct map_session_data *sd = BL_CAST(BL_PC, bl); + struct SessionExt *data = session_get_bysd(sd); + if (!data) + return true; + if (data->clientVersion < 19) + { // not sending new packet to old clients + hookStop(); + return true; + } + } } return true; } @@ -650,6 +662,17 @@ int eclif_send_actual_pre(int *fd, return 0; } } + if (packet == 0x9cb) + { + struct SessionExt *data = session_get(*fd); + if (!data) + return 0; + if (data->clientVersion < 19) + { // not sending new packets to old clients + hookStop(); + return 0; + } + } } return 0; } -- cgit v1.2.3-60-g2f50