diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-04-05 21:23:32 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-04-05 21:23:32 +0300 |
commit | cb847e9e671f6d65f177686ae8544525c8f53763 (patch) | |
tree | 4de95fa8fea52c24ce163e804842c4f1ebc0a069 /src/net/eathena/chathandler.cpp | |
parent | bd44e8d0a94dd96e6f8eb0828b4f2b5de902ee83 (diff) | |
download | manaverse-cb847e9e671f6d65f177686ae8544525c8f53763.tar.gz manaverse-cb847e9e671f6d65f177686ae8544525c8f53763.tar.bz2 manaverse-cb847e9e671f6d65f177686ae8544525c8f53763.tar.xz manaverse-cb847e9e671f6d65f177686ae8544525c8f53763.zip |
eathena: impliment packet SMSG_CHAT_ROOM_ADD_MEMBER.
Diffstat (limited to 'src/net/eathena/chathandler.cpp')
-rw-r--r-- | src/net/eathena/chathandler.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/net/eathena/chathandler.cpp b/src/net/eathena/chathandler.cpp index 77e87df71..3038628ab 100644 --- a/src/net/eathena/chathandler.cpp +++ b/src/net/eathena/chathandler.cpp @@ -912,9 +912,11 @@ void ChatHandler::processChatRoomJoinFailed(Net::MessageIn &msg) void ChatHandler::processChatRoomAddMember(Net::MessageIn &msg) { - UNIMPLIMENTEDPACKET; msg.readInt16("users"); - msg.readString(24, "name"); + const std::string name = msg.readString(24, "name"); + if (!localChatTab) + return; + NotifyManager::notify(NotifyTypes::ROOM_JOINED, name); } void ChatHandler::processChatRoomSettings(Net::MessageIn &msg) |