summaryrefslogtreecommitdiff
path: root/src/net/eathena/adminhandler.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/net/eathena/adminhandler.cpp')
-rw-r--r--src/net/eathena/adminhandler.cpp10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/net/eathena/adminhandler.cpp b/src/net/eathena/adminhandler.cpp
index 630062167..e15c1dd19 100644
--- a/src/net/eathena/adminhandler.cpp
+++ b/src/net/eathena/adminhandler.cpp
@@ -22,7 +22,7 @@
#include "net/eathena/adminhandler.h"
-#include "being/being.h"
+#include "being/localplayer.h"
#include "const/gui/chat.h"
@@ -187,4 +187,12 @@ void AdminHandler::mobSpawnSearch(const std::string &name) const
chatHandler->talk("@whereis " + name, GENERAL_CHANNEL);
}
+void AdminHandler::playerGmCommands(const std::string &name) const
+{
+ if (name.empty() || (localPlayer && name == localPlayer->getName()))
+ chatHandler->talk("@commands", GENERAL_CHANNEL);
+ else
+ chatHandler->talk("#commands " + name, GENERAL_CHANNEL);
+}
+
} // namespace EAthena