summaryrefslogtreecommitdiff
path: root/src/net/eathena/chatrecv.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-04-02 21:51:54 +0300
committerAndrei Karas <akaras@inbox.ru>2016-04-02 21:51:54 +0300
commit3a64766c14254cafd22e5ecf1e1bf6dcdc9f6ea5 (patch)
tree8d342fa6fe5a29052dada546b5d342b1cc4697bc /src/net/eathena/chatrecv.cpp
parentebde0a771c4e0d2a7ef06de4a39c9ae2ab47bd58 (diff)
downloadplus-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.cpp3
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();