diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-09-11 17:52:30 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-09-11 17:52:30 +0300 |
commit | 64d47f267be567cf259de29982acfed7eb76111e (patch) | |
tree | fcc31af89ea6f833c4bc4eec6a0cb8dc9ca809a2 | |
parent | 407ef7d44af6cce1b25f6268c2c8b87ed419baf4 (diff) | |
download | manaverse-64d47f267be567cf259de29982acfed7eb76111e.tar.gz manaverse-64d47f267be567cf259de29982acfed7eb76111e.tar.bz2 manaverse-64d47f267be567cf259de29982acfed7eb76111e.tar.xz manaverse-64d47f267be567cf259de29982acfed7eb76111e.zip |
eathena: add packet CMSG_ADMIN_MUTE_NAME 0x0212.
-rw-r--r-- | src/net/adminhandler.h | 2 | ||||
-rw-r--r-- | src/net/eathena/adminhandler.cpp | 6 | ||||
-rw-r--r-- | src/net/eathena/adminhandler.h | 1 | ||||
-rw-r--r-- | src/net/eathena/protocol.h | 1 | ||||
-rw-r--r-- | src/net/tmwa/adminhandler.cpp | 4 | ||||
-rw-r--r-- | src/net/tmwa/adminhandler.h | 2 |
6 files changed, 16 insertions, 0 deletions
diff --git a/src/net/adminhandler.h b/src/net/adminhandler.h index 66a091f2c..36ce36369 100644 --- a/src/net/adminhandler.h +++ b/src/net/adminhandler.h @@ -62,6 +62,8 @@ class AdminHandler notfinal const int type, const int limit) const = 0; + virtual void muteName(const std::string &name) const = 0; + virtual void warp(const std::string &map, const int x, const int y) const = 0; 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 diff --git a/src/net/tmwa/adminhandler.cpp b/src/net/tmwa/adminhandler.cpp index 467f75467..b07a650f9 100644 --- a/src/net/tmwa/adminhandler.cpp +++ b/src/net/tmwa/adminhandler.cpp @@ -134,4 +134,8 @@ void AdminHandler::mute(const Being *const being A_UNUSED, return; } +void AdminHandler::muteName(const std::string &name A_UNUSED) const +{ +} + } // namespace TmwAthena diff --git a/src/net/tmwa/adminhandler.h b/src/net/tmwa/adminhandler.h index 417441fb4..9c3ad6c36 100644 --- a/src/net/tmwa/adminhandler.h +++ b/src/net/tmwa/adminhandler.h @@ -63,6 +63,8 @@ class AdminHandler final : public MessageHandler, public Ea::AdminHandler void mute(const Being *const being, const int type, const int limit) const override final; + + void muteName(const std::string &name) const override final; }; } // namespace TmwAthena |