diff options
author | Andrei Karas <akaras@inbox.ru> | 2011-05-19 23:41:05 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2011-05-20 20:50:00 +0300 |
commit | 78ab801cc5dfe687718ec7e027c3050bed62a1e9 (patch) | |
tree | 064fc82cf6aed1dbcd0a5650b146e74cf23a20a0 /src/net/tmwa/adminhandler.cpp | |
parent | 2a2155ae3c601fe1f813f9214b1421e4ac634148 (diff) | |
download | mv-78ab801cc5dfe687718ec7e027c3050bed62a1e9.tar.gz mv-78ab801cc5dfe687718ec7e027c3050bed62a1e9.tar.bz2 mv-78ab801cc5dfe687718ec7e027c3050bed62a1e9.tar.xz mv-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.cpp | 40 |
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 |