summaryrefslogtreecommitdiff
path: root/src/net/eathena
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-02-23 21:11:48 +0300
committerAndrei Karas <akaras@inbox.ru>2016-02-23 21:11:48 +0300
commit3eb2a28b8c79cad5071d9512054783f1a1cef602 (patch)
tree547db61f491fa2f19b01c4b922994f4a59d5ada1 /src/net/eathena
parent5bebc140ca792ce6438352629c4dead69711f813 (diff)
downloadplus-3eb2a28b8c79cad5071d9512054783f1a1cef602.tar.gz
plus-3eb2a28b8c79cad5071d9512054783f1a1cef602.tar.bz2
plus-3eb2a28b8c79cad5071d9512054783f1a1cef602.tar.xz
plus-3eb2a28b8c79cad5071d9512054783f1a1cef602.zip
Add chat command /monsterinfo
Diffstat (limited to 'src/net/eathena')
-rw-r--r--src/net/eathena/adminhandler.cpp9
-rw-r--r--src/net/eathena/adminhandler.h2
2 files changed, 11 insertions, 0 deletions
diff --git a/src/net/eathena/adminhandler.cpp b/src/net/eathena/adminhandler.cpp
index 1b49e4c45..878cd2156 100644
--- a/src/net/eathena/adminhandler.cpp
+++ b/src/net/eathena/adminhandler.cpp
@@ -24,6 +24,10 @@
#include "being/being.h"
+#include "const/gui/chat.h"
+
+#include "net/chathandler.h"
+
#include "net/eathena/messageout.h"
#include "net/eathena/protocolout.h"
@@ -158,4 +162,9 @@ void AdminHandler::requestStats(const std::string &name) const
outMsg.writeString(name, 24, "name");
}
+void AdminHandler::monsterInfo(const std::string &name) const
+{
+ chatHandler->talk("@monsterinfo " + name, GENERAL_CHANNEL);
+}
+
} // namespace EAthena
diff --git a/src/net/eathena/adminhandler.h b/src/net/eathena/adminhandler.h
index 19f26db7e..abbd292c9 100644
--- a/src/net/eathena/adminhandler.h
+++ b/src/net/eathena/adminhandler.h
@@ -71,6 +71,8 @@ class AdminHandler final : public Ea::AdminHandler
void requestStats(const std::string &name) const override final;
+ void monsterInfo(const std::string &name) const override final;
+
protected:
static std::string mStatsName;
};