summaryrefslogtreecommitdiff
path: root/src/net/tmwa
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-10-07 16:26:44 +0300
committerAndrei Karas <akaras@inbox.ru>2014-10-07 16:26:44 +0300
commit726a46299e2efb1e010fa8524dba19871a0c6294 (patch)
tree3ce9faed100daea04600a6f3b8171dd49b791bb9 /src/net/tmwa
parenta3cedd77c73c820d6125aaa4b8f3dacbe92705c4 (diff)
downloadmanaverse-726a46299e2efb1e010fa8524dba19871a0c6294.tar.gz
manaverse-726a46299e2efb1e010fa8524dba19871a0c6294.tar.bz2
manaverse-726a46299e2efb1e010fa8524dba19871a0c6294.tar.xz
manaverse-726a46299e2efb1e010fa8524dba19871a0c6294.zip
Move processGuildExpulsionList from ea namespace into eathena and tmwa.
Diffstat (limited to 'src/net/tmwa')
-rw-r--r--src/net/tmwa/guildhandler.cpp16
-rw-r--r--src/net/tmwa/guildhandler.h2
2 files changed, 18 insertions, 0 deletions
diff --git a/src/net/tmwa/guildhandler.cpp b/src/net/tmwa/guildhandler.cpp
index ec7c9541a..0c1757f86 100644
--- a/src/net/tmwa/guildhandler.cpp
+++ b/src/net/tmwa/guildhandler.cpp
@@ -414,4 +414,20 @@ void GuildHandler::processGuildExpulsion(Net::MessageIn &msg) const
processGuildExpulsionContinue(nick);
}
+void GuildHandler::processGuildExpulsionList(Net::MessageIn &msg) const
+{
+ const int length = msg.readInt16("len");
+ if (length < 4)
+ return;
+
+ const int count = (length - 4) / 88;
+
+ for (int i = 0; i < count; i++)
+ {
+ msg.readString(24, "name of expulsed");
+ msg.readString(24, "name of expluser");
+ msg.readString(24, "message");
+ }
+}
+
} // namespace TmwAthena
diff --git a/src/net/tmwa/guildhandler.h b/src/net/tmwa/guildhandler.h
index acc32e70b..35f10bbbf 100644
--- a/src/net/tmwa/guildhandler.h
+++ b/src/net/tmwa/guildhandler.h
@@ -79,6 +79,8 @@ class GuildHandler final : public Ea::GuildHandler, public MessageHandler
void processGuildMemberLogin(Net::MessageIn &msg) const;
void processGuildExpulsion(Net::MessageIn &msg) const;
+
+ void processGuildExpulsionList(Net::MessageIn &msg) const;
};
extern Ea::GuildTab *guildTab;