From a5199d9d9af28d7a2b5472b02c72445c25a5a3f9 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Tue, 9 Sep 2014 12:43:54 +0300 Subject: Move AdminHandler::warp from ea namespace into eathena and tmwa. --- src/net/eathena/adminhandler.cpp | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'src/net/eathena/adminhandler.cpp') diff --git a/src/net/eathena/adminhandler.cpp b/src/net/eathena/adminhandler.cpp index 504addbd8..1fbc30ee1 100644 --- a/src/net/eathena/adminhandler.cpp +++ b/src/net/eathena/adminhandler.cpp @@ -24,6 +24,11 @@ #include "notifymanager.h" +#include "gui/chatconsts.h" + +#include "net/chathandler.h" +#include "net/net.h" + #include "net/eathena/messageout.h" #include "net/eathena/protocol.h" @@ -92,4 +97,10 @@ void AdminHandler::kick(const int playerId) const outMsg.writeInt32(playerId, "account id"); } +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); +} + } // namespace EAthena -- cgit v1.2.3-60-g2f50