diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-09-11 17:43:59 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-09-11 17:43:59 +0300 |
commit | 407ef7d44af6cce1b25f6268c2c8b87ed419baf4 (patch) | |
tree | 116a94c6ddeb00fee94cee1e8ab37afc410da139 /src/net/eathena/adminhandler.cpp | |
parent | ae0cd07c5d94e3696a072bdd9f9aa58223cae75c (diff) | |
download | plus-407ef7d44af6cce1b25f6268c2c8b87ed419baf4.tar.gz plus-407ef7d44af6cce1b25f6268c2c8b87ed419baf4.tar.bz2 plus-407ef7d44af6cce1b25f6268c2c8b87ed419baf4.tar.xz plus-407ef7d44af6cce1b25f6268c2c8b87ed419baf4.zip |
eathena: add packet CMSG_ADMIN_MUTE 0x0149.
Diffstat (limited to 'src/net/eathena/adminhandler.cpp')
-rw-r--r-- | src/net/eathena/adminhandler.cpp | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/src/net/eathena/adminhandler.cpp b/src/net/eathena/adminhandler.cpp index 2ec6919c2..c4b55def4 100644 --- a/src/net/eathena/adminhandler.cpp +++ b/src/net/eathena/adminhandler.cpp @@ -134,10 +134,17 @@ void AdminHandler::recallName(const std::string &name) const outMsg.writeString(name, 24, "name"); } -void AdminHandler::mute(const int playerId A_UNUSED, const int type A_UNUSED, - const int limit A_UNUSED) const +void AdminHandler::mute(const Being *const being, + const int type, + const int limit) const { - return; + if (!being) + return; + + MessageOut outMsg(CMSG_ADMIN_MUTE); + outMsg.writeInt32(being->getId(), "account id"); + outMsg.writeInt8(type, "type"); + outMsg.writeInt16(limit, "value"); } } // namespace EAthena |