summaryrefslogtreecommitdiff
path: root/src/net/eathena/playerhandler.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-02-20 15:35:36 +0300
committerAndrei Karas <akaras@inbox.ru>2015-02-20 15:35:36 +0300
commit130ad803401e9d582a2118d9bc92b984222b00f1 (patch)
tree007c13fcabe6754c3fb50265fa665f6bd616e938 /src/net/eathena/playerhandler.cpp
parent16121e499c734c00c714abd0998c24f4845329c3 (diff)
downloadmanaplus-130ad803401e9d582a2118d9bc92b984222b00f1.tar.gz
manaplus-130ad803401e9d582a2118d9bc92b984222b00f1.tar.bz2
manaplus-130ad803401e9d582a2118d9bc92b984222b00f1.tar.xz
manaplus-130ad803401e9d582a2118d9bc92b984222b00f1.zip
eathena: add support for online list packets.
Diffstat (limited to 'src/net/eathena/playerhandler.cpp')
-rw-r--r--src/net/eathena/playerhandler.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/net/eathena/playerhandler.cpp b/src/net/eathena/playerhandler.cpp
index 03dbb2cf5..b5bc87dcf 100644
--- a/src/net/eathena/playerhandler.cpp
+++ b/src/net/eathena/playerhandler.cpp
@@ -62,6 +62,7 @@ PlayerHandler::PlayerHandler() :
SMSG_PLAYER_SKILL_MESSAGE,
SMSG_MAP_MASK,
SMSG_MAP_MUSIC,
+ SMSG_ONLINE_LIST,
0
};
handledMessages = _messages;
@@ -141,6 +142,10 @@ void PlayerHandler::handleMessage(Net::MessageIn &msg)
processMapMusic(msg);
break;
+ case SMSG_ONLINE_LIST:
+ processOnlineList(msg);
+ break;
+
default:
break;
}
@@ -249,6 +254,7 @@ void PlayerHandler::respawn() const
void PlayerHandler::requestOnlineList() const
{
+ createOutPacket(CMSG_ONLINE_LIST);
}
void PlayerHandler::updateStatus(const uint8_t status) const