diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-09-02 20:58:41 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-09-02 20:58:41 +0300 |
commit | 84d2bab38202cd52b5eb0a37c12204ab6f607915 (patch) | |
tree | 2f3951b2f4f3b75f190eb2539979cc4afbace27c /src/net/eathena/adminhandler.cpp | |
parent | 40730c4fa73d403cf7284a76d9b26f7ec662afa4 (diff) | |
download | manaplus-84d2bab38202cd52b5eb0a37c12204ab6f607915.tar.gz manaplus-84d2bab38202cd52b5eb0a37c12204ab6f607915.tar.bz2 manaplus-84d2bab38202cd52b5eb0a37c12204ab6f607915.tar.xz manaplus-84d2bab38202cd52b5eb0a37c12204ab6f607915.zip |
Remove MessageHandler class
Diffstat (limited to 'src/net/eathena/adminhandler.cpp')
-rw-r--r-- | src/net/eathena/adminhandler.cpp | 31 |
1 files changed, 0 insertions, 31 deletions
diff --git a/src/net/eathena/adminhandler.cpp b/src/net/eathena/adminhandler.cpp index 5b19f912b..b9d6a81bc 100644 --- a/src/net/eathena/adminhandler.cpp +++ b/src/net/eathena/adminhandler.cpp @@ -40,42 +40,11 @@ namespace EAthena std::string AdminHandler::mStatsName; AdminHandler::AdminHandler() : - MessageHandler(), Ea::AdminHandler() { - static const uint16_t _messages[] = - { - SMSG_ADMIN_KICK_ACK, - SMSG_ADMIN_GET_LOGIN_ACK, - SMSG_ADMIN_SET_TILE_TYPE, - SMSG_ADMIN_ACCOUNT_STATS, - 0 - }; - handledMessages = _messages; adminHandler = this; } -void AdminHandler::handleMessage(Net::MessageIn &msg) -{ - switch (msg.getId()) - { - case SMSG_ADMIN_KICK_ACK: - Ea::AdminRecv::processKickAck(msg); - break; - case SMSG_ADMIN_GET_LOGIN_ACK: - AdminRecv::processAdminGetLoginAck(msg); - break; - case SMSG_ADMIN_SET_TILE_TYPE: - AdminRecv::processSetTileType(msg); - break; - case SMSG_ADMIN_ACCOUNT_STATS: - AdminRecv::processAccountStats(msg); - break; - default: - break; - } -} - void AdminHandler::announce(const std::string &text) const { createOutPacket(CMSG_ADMIN_ANNOUNCE); |