summaryrefslogtreecommitdiff
path: root/src/net/eathena/adminhandler.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/net/eathena/adminhandler.cpp')
-rw-r--r--src/net/eathena/adminhandler.cpp31
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);