summaryrefslogtreecommitdiff
path: root/src/net/eathena/friendshandler.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-10-14 00:13:08 +0300
committerAndrei Karas <akaras@inbox.ru>2014-10-14 00:13:08 +0300
commit55901aee07fe748590acb31b69777b1b6e914b6c (patch)
treeec333cf05b4ac8a2b4f2a8736b9fc657301f5a59 /src/net/eathena/friendshandler.cpp
parentbde97e51963bc89b5922707fa628ffbeb7b03b01 (diff)
downloadmanaplus-55901aee07fe748590acb31b69777b1b6e914b6c.tar.gz
manaplus-55901aee07fe748590acb31b69777b1b6e914b6c.tar.bz2
manaplus-55901aee07fe748590acb31b69777b1b6e914b6c.tar.xz
manaplus-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.cpp14
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