diff options
author | Andrei Karas <akaras@inbox.ru> | 2013-03-25 13:09:04 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2013-03-25 13:09:04 +0300 |
commit | 90a652e5c672b9a11b165ee939889f406b852ee1 (patch) | |
tree | 4841dff5271783feb53cd2d5164aea4c2ebf69b7 /src/net/ea/adminhandler.cpp | |
parent | a306ecf96736779b08d1de7ec994d3d741d5dc61 (diff) | |
download | manaplus-90a652e5c672b9a11b165ee939889f406b852ee1.tar.gz manaplus-90a652e5c672b9a11b165ee939889f406b852ee1.tar.bz2 manaplus-90a652e5c672b9a11b165ee939889f406b852ee1.tar.xz manaplus-90a652e5c672b9a11b165ee939889f406b852ee1.zip |
improve adminhandler class.
Diffstat (limited to 'src/net/ea/adminhandler.cpp')
-rw-r--r-- | src/net/ea/adminhandler.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/net/ea/adminhandler.cpp b/src/net/ea/adminhandler.cpp index 56b6dfe90..7a07cb4a2 100644 --- a/src/net/ea/adminhandler.cpp +++ b/src/net/ea/adminhandler.cpp @@ -38,7 +38,7 @@ void AdminHandler::kickName(const std::string &name) Net::getChatHandler()->talk("@kick " + name, GENERAL_CHANNEL); } -void AdminHandler::ban(int playerId A_UNUSED) +void AdminHandler::ban(const int playerId A_UNUSED) { // Not supported } @@ -48,7 +48,7 @@ void AdminHandler::banName(const std::string &name) Net::getChatHandler()->talk("@ban " + name, GENERAL_CHANNEL); } -void AdminHandler::unban(int playerId A_UNUSED) +void AdminHandler::unban(const int playerId A_UNUSED) { // Not supported } @@ -58,13 +58,13 @@ void AdminHandler::unbanName(const std::string &name) Net::getChatHandler()->talk("@unban " + name, GENERAL_CHANNEL); } -void AdminHandler::mute(int playerId A_UNUSED, int type A_UNUSED, - int limit A_UNUSED) +void AdminHandler::mute(const int playerId A_UNUSED, const int type A_UNUSED, + const int limit A_UNUSED) { - return; // Still looking into this + return; } -void AdminHandler::warp(std::string map, int x, int y) +void AdminHandler::warp(const std::string &map, const int x, const int y) { Net::getChatHandler()->talk(strprintf( "@warp %s %d %d", map.c_str(), x, y), GENERAL_CHANNEL); |