summaryrefslogtreecommitdiff
path: root/src/net/ea/adminhandler.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/net/ea/adminhandler.cpp')
-rw-r--r--src/net/ea/adminhandler.cpp10
1 files changed, 2 insertions, 8 deletions
diff --git a/src/net/ea/adminhandler.cpp b/src/net/ea/adminhandler.cpp
index f024394db..a995594d2 100644
--- a/src/net/ea/adminhandler.cpp
+++ b/src/net/ea/adminhandler.cpp
@@ -22,6 +22,8 @@
#include "net/ea/adminhandler.h"
+#include "gui/chatconsts.h"
+
#include "net/chathandler.h"
#include "net/net.h"
@@ -34,8 +36,6 @@ extern int serverVersion;
namespace Ea
{
-const std::string GENERAL_CHANNEL;
-
void AdminHandler::kickName(const std::string &name) const
{
Net::getChatHandler()->talk("@kick " + name, GENERAL_CHANNEL);
@@ -67,12 +67,6 @@ void AdminHandler::mute(const int playerId A_UNUSED, const int type A_UNUSED,
return;
}
-void AdminHandler::warp(const std::string &map, const int x, const int y) const
-{
- Net::getChatHandler()->talk(strprintf(
- "@warp %s %d %d", map.c_str(), x, y), GENERAL_CHANNEL);
-}
-
void AdminHandler::gotoName(const std::string &name) const
{
Net::getChatHandler()->talk("@goto " + name, GENERAL_CHANNEL);