diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-10-14 00:13:08 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-10-14 00:13:08 +0300 |
commit | 55901aee07fe748590acb31b69777b1b6e914b6c (patch) | |
tree | ec333cf05b4ac8a2b4f2a8736b9fc657301f5a59 /src/net/eathena/friendshandler.cpp | |
parent | bde97e51963bc89b5922707fa628ffbeb7b03b01 (diff) | |
download | plus-55901aee07fe748590acb31b69777b1b6e914b6c.tar.gz plus-55901aee07fe748590acb31b69777b1b6e914b6c.tar.bz2 plus-55901aee07fe748590acb31b69777b1b6e914b6c.tar.xz plus-55901aee07fe748590acb31b69777b1b6e914b6c.zip |
eathena: add partial support for packet SMSG_FRIENDS_PLAYER_ONLINE 0x0206.
Diffstat (limited to 'src/net/eathena/friendshandler.cpp')
-rw-r--r-- | src/net/eathena/friendshandler.cpp | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/net/eathena/friendshandler.cpp b/src/net/eathena/friendshandler.cpp index 55a88c9ed..c5bb7e8b5 100644 --- a/src/net/eathena/friendshandler.cpp +++ b/src/net/eathena/friendshandler.cpp @@ -20,6 +20,8 @@ #include "net/eathena/friendshandler.h" +#include "net/eathena/protocol.h" + #include "debug.h" extern Net::FriendsHandler *friendsHandler; @@ -32,6 +34,7 @@ FriendsHandler::FriendsHandler() : { static const uint16_t _messages[] = { + SMSG_FRIENDS_PLAYER_ONLINE, 0 }; handledMessages = _messages; @@ -42,9 +45,20 @@ void FriendsHandler::handleMessage(Net::MessageIn &msg) { switch (msg.getId()) { + case SMSG_FRIENDS_PLAYER_ONLINE: + processPlayerOnline(msg); + break; + default: break; } } +void FriendsHandler::processPlayerOnline(Net::MessageIn &msg) +{ + msg.readInt32("account id"); + msg.readInt32("char id"); + msg.readUInt8("flag"); // 0 - online, 1 - offline +} + } // namespace EAthena |