diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-03-10 21:16:08 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-03-10 21:16:08 +0300 |
commit | 0295c338fcb43f10f6dbc664c0f86021464248c7 (patch) | |
tree | 872bb8b874e1b551b94f8ffa544d643ed9323592 /src/net/eathena/chathandler.cpp | |
parent | 38315e4cc40ec0990b1e4f4e6d814fafdd064aae (diff) | |
download | mv-0295c338fcb43f10f6dbc664c0f86021464248c7.tar.gz mv-0295c338fcb43f10f6dbc664c0f86021464248c7.tar.bz2 mv-0295c338fcb43f10f6dbc664c0f86021464248c7.tar.xz mv-0295c338fcb43f10f6dbc664c0f86021464248c7.zip |
eathena: add partial support for packet SMSG_CHAT_ROLE_CHANGE 0x00e1.
Diffstat (limited to 'src/net/eathena/chathandler.cpp')
-rw-r--r-- | src/net/eathena/chathandler.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/net/eathena/chathandler.cpp b/src/net/eathena/chathandler.cpp index dd232305c..07d57dcd0 100644 --- a/src/net/eathena/chathandler.cpp +++ b/src/net/eathena/chathandler.cpp @@ -82,6 +82,7 @@ ChatHandler::ChatHandler() : SMSG_CHAT_JOIN_FAILED, SMSG_CHAT_ADD_MEMBER, SMSG_CHAT_SETTINGS, + SMSG_CHAT_ROLE_CHANGE, 0 }; handledMessages = _messages; @@ -186,6 +187,10 @@ void ChatHandler::handleMessage(Net::MessageIn &msg) processChatSettings(msg); break; + case SMSG_CHAT_ROLE_CHANGE: + processChatRoleChange(msg); + break; + default: break; } @@ -833,4 +838,11 @@ void ChatHandler::processChatSettings(Net::MessageIn &msg) msg.readString(sz, "title"); } +void ChatHandler::processChatRoleChange(Net::MessageIn &msg) +{ + UNIMPLIMENTEDPACKET; + msg.readInt32("role"); + msg.readString(24, "name"); +} + } // namespace EAthena |