diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-09-11 21:22:03 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-09-11 21:26:53 +0300 |
commit | be214fb83a0207e6675f08d299cd30d575371794 (patch) | |
tree | 5611aaf6433964cbbc370d9bf12fb7bb75dfe4a0 /src/net/eathena/chathandler.cpp | |
parent | c54d7e82f0f05f51ce45db59d14e1b70fe33ef3b (diff) | |
download | manaplus-be214fb83a0207e6675f08d299cd30d575371794.tar.gz manaplus-be214fb83a0207e6675f08d299cd30d575371794.tar.bz2 manaplus-be214fb83a0207e6675f08d299cd30d575371794.tar.xz manaplus-be214fb83a0207e6675f08d299cd30d575371794.zip |
add packet CMSG_IGNORE_NICK 0x00cf.
Diffstat (limited to 'src/net/eathena/chathandler.cpp')
-rw-r--r-- | src/net/eathena/chathandler.cpp | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/net/eathena/chathandler.cpp b/src/net/eathena/chathandler.cpp index 60b93f89e..8013513a1 100644 --- a/src/net/eathena/chathandler.cpp +++ b/src/net/eathena/chathandler.cpp @@ -221,6 +221,21 @@ void ChatHandler::unIgnoreAll() const outMsg.writeInt8(1, "flag"); } + +void ChatHandler::ignore(const std::string &nick) const +{ + MessageOut outMsg(CMSG_IGNORE_NICK); + outMsg.writeString(nick, 24, "nick"); + outMsg.writeInt8(0, "flag"); +} + +void ChatHandler::unIgnore(const std::string &nick) const +{ + MessageOut outMsg(CMSG_IGNORE_NICK); + outMsg.writeString(nick, 24, "nick"); + outMsg.writeInt8(1, "flag"); +} + void ChatHandler::createChatRoom(const std::string &title, const std::string &password, const int limit, |