diff options
author | Andrei Karas <akaras@inbox.ru> | 2016-09-12 17:57:04 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2016-09-12 17:57:04 +0300 |
commit | 8d7121b69613e72e70acf0c272dcead070def769 (patch) | |
tree | 993e6b8c02e3b3f3f4df09f9899adaeb0732e01c | |
parent | 0e6ece8a66e20e35229f1027d2d1135f0c6d943a (diff) | |
download | plugin-8d7121b69613e72e70acf0c272dcead070def769.tar.gz plugin-8d7121b69613e72e70acf0c272dcead070def769.tar.bz2 plugin-8d7121b69613e72e70acf0c272dcead070def769.tar.xz plugin-8d7121b69613e72e70acf0c272dcead070def769.zip |
Dont send packet 0x9cb to old clients.
-rw-r--r-- | src/emap/clif.c | 23 |
1 files changed, 23 insertions, 0 deletions
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; } |