summaryrefslogtreecommitdiff
path: root/src/net/eathena
diff options
context:
space:
mode:
Diffstat (limited to 'src/net/eathena')
-rw-r--r--src/net/eathena/adminhandler.cpp6
-rw-r--r--src/net/eathena/adminhandler.h1
-rw-r--r--src/net/eathena/protocol.h1
3 files changed, 8 insertions, 0 deletions
diff --git a/src/net/eathena/adminhandler.cpp b/src/net/eathena/adminhandler.cpp
index c4b55def4..d99af7d1e 100644
--- a/src/net/eathena/adminhandler.cpp
+++ b/src/net/eathena/adminhandler.cpp
@@ -147,4 +147,10 @@ void AdminHandler::mute(const Being *const being,
outMsg.writeInt16(limit, "value");
}
+void AdminHandler::muteName(const std::string &name) const
+{
+ MessageOut outMsg(CMSG_ADMIN_MUTE_NAME);
+ outMsg.writeString(name, 24, "name");
+}
+
} // namespace EAthena
diff --git a/src/net/eathena/adminhandler.h b/src/net/eathena/adminhandler.h
index 54c06e02f..819c02ad8 100644
--- a/src/net/eathena/adminhandler.h
+++ b/src/net/eathena/adminhandler.h
@@ -64,6 +64,7 @@ class AdminHandler final : public MessageHandler, public Ea::AdminHandler
const int type,
const int limit) const override final;
+ void muteName(const std::string &name) const override final;
};
} // namespace EAthena
diff --git a/src/net/eathena/protocol.h b/src/net/eathena/protocol.h
index b572f4958..fcfced256 100644
--- a/src/net/eathena/protocol.h
+++ b/src/net/eathena/protocol.h
@@ -306,6 +306,7 @@
#define CMSG_ADMIN_GOTO 0x01bb
#define CMSG_ADMIN_RECALL 0x01bd
#define CMSG_ADMIN_MUTE 0x0149
+#define CMSG_ADMIN_MUTE_NAME 0x0212
#define CMSG_GUILD_CHECK_MASTER 0x014d
#define CMSG_GUILD_REQUEST_INFO 0x014f