summaryrefslogtreecommitdiff
path: root/src/net/eathena/friendsrecv.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2018-04-07 00:13:10 +0300
committerAndrei Karas <akaras@inbox.ru>2018-04-07 00:22:30 +0300
commit0cd149ef9bcac3d136406e4d90e8875dbb85c925 (patch)
treeece086b51026e90c9bc51b318d5206cf1b3bf958 /src/net/eathena/friendsrecv.cpp
parent2bd8b34e2cc809a0adbebdadf5a777fbb57cf5a8 (diff)
downloadplus-0cd149ef9bcac3d136406e4d90e8875dbb85c925.tar.gz
plus-0cd149ef9bcac3d136406e4d90e8875dbb85c925.tar.bz2
plus-0cd149ef9bcac3d136406e4d90e8875dbb85c925.tar.xz
plus-0cd149ef9bcac3d136406e4d90e8875dbb85c925.zip
Update packet SMSG_FRIENDS_PLAYER_ONLINE for new packet versions.
Diffstat (limited to 'src/net/eathena/friendsrecv.cpp')
-rw-r--r--src/net/eathena/friendsrecv.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/net/eathena/friendsrecv.cpp b/src/net/eathena/friendsrecv.cpp
index cddda0c4f..874466de0 100644
--- a/src/net/eathena/friendsrecv.cpp
+++ b/src/net/eathena/friendsrecv.cpp
@@ -26,6 +26,9 @@
#include "debug.h"
+extern int packetVersionMain;
+extern int packetVersionRe;
+
namespace EAthena
{
@@ -35,6 +38,8 @@ void FriendsRecv::processPlayerOnline(Net::MessageIn &msg)
msg.readBeingId("account id");
msg.readInt32("char id");
msg.readUInt8("flag"); // 0 - online, 1 - offline
+ if (packetVersionMain >= 20180307 || packetVersionRe >= 20180221)
+ msg.readString(24, "player name");
}
void FriendsRecv::processFriendsList(Net::MessageIn &msg)