diff options
author | Andrei Karas <akaras@inbox.ru> | 2016-04-02 21:51:54 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2016-04-02 21:51:54 +0300 |
commit | 3a64766c14254cafd22e5ecf1e1bf6dcdc9f6ea5 (patch) | |
tree | 8d342fa6fe5a29052dada546b5d342b1cc4697bc /src/net/eathena/chatrecv.cpp | |
parent | ebde0a771c4e0d2a7ef06de4a39c9ae2ab47bd58 (diff) | |
download | plus-3a64766c14254cafd22e5ecf1e1bf6dcdc9f6ea5.tar.gz plus-3a64766c14254cafd22e5ecf1e1bf6dcdc9f6ea5.tar.bz2 plus-3a64766c14254cafd22e5ecf1e1bf6dcdc9f6ea5.tar.xz plus-3a64766c14254cafd22e5ecf1e1bf6dcdc9f6ea5.zip |
Sort more packets. Add version checks inside packets.
Diffstat (limited to 'src/net/eathena/chatrecv.cpp')
-rw-r--r-- | src/net/eathena/chatrecv.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/net/eathena/chatrecv.cpp b/src/net/eathena/chatrecv.cpp index 854647749..707012c0f 100644 --- a/src/net/eathena/chatrecv.cpp +++ b/src/net/eathena/chatrecv.cpp @@ -325,7 +325,8 @@ void ChatRecv::processWhisperResponse(Net::MessageIn &msg) BLOCK_START("ChatRecv::processWhisperResponse") const uint8_t type = msg.readUInt8("response"); - msg.readInt32("unknown"); + if (msg.getVersion() >= 20131223) + msg.readInt32("unknown"); if (type == 1 && chatWindow) { const std::string nick = Ea::ChatRecv::getLastWhisperNick(); |