diff options
author | Andrei Karas <akaras@inbox.ru> | 2018-09-25 21:54:31 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2018-09-25 21:54:31 +0300 |
commit | 9793b9e60f2ca5a163fce8e284d20c36c74ea094 (patch) | |
tree | 2b7c4d9c0762a9bd022fd7c8f014986bb1aafc57 /src/net/eathena/guildrecv.cpp | |
parent | df0761d02f541723a4d127ef1d252cfa66e6a852 (diff) | |
download | manaverse-9793b9e60f2ca5a163fce8e284d20c36c74ea094.tar.gz manaverse-9793b9e60f2ca5a163fce8e284d20c36c74ea094.tar.bz2 manaverse-9793b9e60f2ca5a163fce8e284d20c36c74ea094.tar.xz manaverse-9793b9e60f2ca5a163fce8e284d20c36c74ea094.zip |
Add packet SMSG_GUILD_EXPULSION2 0x0a82.
Diffstat (limited to 'src/net/eathena/guildrecv.cpp')
-rw-r--r-- | src/net/eathena/guildrecv.cpp | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/src/net/eathena/guildrecv.cpp b/src/net/eathena/guildrecv.cpp index 5fa99bb78..574090c8f 100644 --- a/src/net/eathena/guildrecv.cpp +++ b/src/net/eathena/guildrecv.cpp @@ -743,6 +743,24 @@ void GuildRecv::processGuildExpulsion(Net::MessageIn &msg) GuildRecv::processGuildExpulsionContinue(nick); } +void GuildRecv::processGuildExpulsion2(Net::MessageIn &msg) +{ + msg.readString(40, "message"); + const int charId = msg.readInt32("char id"); + + std::string nick; + + if (taGuild != nullptr) + { + const GuildMember *const member = taGuild->getMemberByCharId(charId); + if (member != nullptr) + { + nick = member->getName(); + GuildRecv::processGuildExpulsionContinue(nick); + } + } +} + void GuildRecv::processGuildExpulsionList(Net::MessageIn &msg) { const int length = msg.readInt16("len"); |