summaryrefslogtreecommitdiff
path: root/src/net/eathena
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-09-09 12:43:54 +0300
committerAndrei Karas <akaras@inbox.ru>2014-09-09 12:43:54 +0300
commita5199d9d9af28d7a2b5472b02c72445c25a5a3f9 (patch)
treeb31a7460a35fd06a1ee79f0d78801f1f778cc5f8 /src/net/eathena
parentf580ee13d492ad7971fe3828a9dc59ce8aafbc27 (diff)
downloadplus-a5199d9d9af28d7a2b5472b02c72445c25a5a3f9.tar.gz
plus-a5199d9d9af28d7a2b5472b02c72445c25a5a3f9.tar.bz2
plus-a5199d9d9af28d7a2b5472b02c72445c25a5a3f9.tar.xz
plus-a5199d9d9af28d7a2b5472b02c72445c25a5a3f9.zip
Move AdminHandler::warp from ea namespace into eathena and tmwa.
Diffstat (limited to 'src/net/eathena')
-rw-r--r--src/net/eathena/adminhandler.cpp11
-rw-r--r--src/net/eathena/adminhandler.h3
2 files changed, 14 insertions, 0 deletions
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
diff --git a/src/net/eathena/adminhandler.h b/src/net/eathena/adminhandler.h
index b7b48fcbb..28f0ac1e8 100644
--- a/src/net/eathena/adminhandler.h
+++ b/src/net/eathena/adminhandler.h
@@ -46,6 +46,9 @@ class AdminHandler final : public MessageHandler, public Ea::AdminHandler
void hide(const bool h) const override final;
void kick(const int playerId) const override final;
+
+ void warp(const std::string &map,
+ const int x, const int y) const override final;
};
} // namespace EAthena