summaryrefslogtreecommitdiff
path: root/src/net/tmwa/adminhandler.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2011-05-19 23:41:05 +0300
committerAndrei Karas <akaras@inbox.ru>2011-05-20 20:50:00 +0300
commit78ab801cc5dfe687718ec7e027c3050bed62a1e9 (patch)
tree064fc82cf6aed1dbcd0a5650b146e74cf23a20a0 /src/net/tmwa/adminhandler.cpp
parent2a2155ae3c601fe1f813f9214b1421e4ac634148 (diff)
downloadmanaverse-78ab801cc5dfe687718ec7e027c3050bed62a1e9.tar.gz
manaverse-78ab801cc5dfe687718ec7e027c3050bed62a1e9.tar.bz2
manaverse-78ab801cc5dfe687718ec7e027c3050bed62a1e9.tar.xz
manaverse-78ab801cc5dfe687718ec7e027c3050bed62a1e9.zip
Start separating netcode to functions and moving some code to ea name space
for future usage for different server types. Processed classes: adminhandler, beinghandler, buysellhandler.
Diffstat (limited to 'src/net/tmwa/adminhandler.cpp')
-rw-r--r--src/net/tmwa/adminhandler.cpp40
1 files changed, 3 insertions, 37 deletions
diff --git a/src/net/tmwa/adminhandler.cpp b/src/net/tmwa/adminhandler.cpp
index f33bf295b..45a285d02 100644
--- a/src/net/tmwa/adminhandler.cpp
+++ b/src/net/tmwa/adminhandler.cpp
@@ -22,10 +22,13 @@
#include "net/tmwa/adminhandler.h"
+#include "net/ea/adminhandler.h"
+
#include "actorspritemanager.h"
#include "being.h"
#include "event.h"
#include "game.h"
+#include "log.h"
#include "playerrelations.h"
#include "net/chathandler.h"
@@ -96,41 +99,4 @@ void AdminHandler::kick(int playerId)
outMsg.writeInt32(playerId);
}
-void AdminHandler::kick(const std::string &name)
-{
- Net::getChatHandler()->talk("@kick " + name);
-}
-
-void AdminHandler::ban(int playerId _UNUSED_)
-{
- // Not supported
-}
-
-void AdminHandler::ban(const std::string &name)
-{
- Net::getChatHandler()->talk("@ban " + name);
-}
-
-void AdminHandler::unban(int playerId _UNUSED_)
-{
- // Not supported
-}
-
-void AdminHandler::unban(const std::string &name)
-{
- Net::getChatHandler()->talk("@unban " + name);
-}
-
-void AdminHandler::mute(int playerId _UNUSED_, int type _UNUSED_,
- int limit _UNUSED_)
-{
- return; // Still looking into this
-/*
- MessageOut outMsg(CMSG_ADMIN_MUTE);
- outMsg.writeInt32(playerId);
- outMsg.writeInt8(type);
- outMsg.writeInt16(limit);
-*/
-}
-
} // namespace TmwAthena