summaryrefslogtreecommitdiff
path: root/src/net
diff options
context:
space:
mode:
Diffstat (limited to 'src/net')
-rw-r--r--src/net/adminhandler.h2
-rw-r--r--src/net/eathena/adminhandler.cpp9
-rw-r--r--src/net/eathena/adminhandler.h2
-rw-r--r--src/net/tmwa/adminhandler.cpp4
-rw-r--r--src/net/tmwa/adminhandler.h2
5 files changed, 19 insertions, 0 deletions
diff --git a/src/net/adminhandler.h b/src/net/adminhandler.h
index 71796c01d..87b8bf486 100644
--- a/src/net/adminhandler.h
+++ b/src/net/adminhandler.h
@@ -96,6 +96,8 @@ class AdminHandler notfinal
virtual void unequipAll(const Being *const being) const = 0;
virtual void requestStats(const std::string &name) const = 0;
+
+ virtual void monsterInfo(const std::string &name) const = 0;
};
} // namespace Net
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;
};
diff --git a/src/net/tmwa/adminhandler.cpp b/src/net/tmwa/adminhandler.cpp
index 743eeb534..ba984ff01 100644
--- a/src/net/tmwa/adminhandler.cpp
+++ b/src/net/tmwa/adminhandler.cpp
@@ -126,4 +126,8 @@ void AdminHandler::requestStats(const std::string &name A_UNUSED) const
{
}
+void AdminHandler::monsterInfo(const std::string &name A_UNUSED) const
+{
+}
+
} // namespace TmwAthena
diff --git a/src/net/tmwa/adminhandler.h b/src/net/tmwa/adminhandler.h
index 3a0f6fec5..32d535892 100644
--- a/src/net/tmwa/adminhandler.h
+++ b/src/net/tmwa/adminhandler.h
@@ -72,6 +72,8 @@ class AdminHandler final : public Ea::AdminHandler
void requestStats(const std::string &name) const override final
A_CONST;
+
+ void monsterInfo(const std::string &name) const override final A_CONST;
};
} // namespace TmwAthena