diff options
Diffstat (limited to 'src/net/tmwa')
-rw-r--r-- | src/net/tmwa/guildhandler.cpp | 15 | ||||
-rw-r--r-- | src/net/tmwa/guildhandler.h | 2 |
2 files changed, 17 insertions, 0 deletions
diff --git a/src/net/tmwa/guildhandler.cpp b/src/net/tmwa/guildhandler.cpp index 8226bea3f..ec7c9541a 100644 --- a/src/net/tmwa/guildhandler.cpp +++ b/src/net/tmwa/guildhandler.cpp @@ -23,6 +23,7 @@ #include "actormanager.h" #include "configuration.h" +#include "notifymanager.h" #include "being/localplayer.h" #include "being/playerinfo.h" @@ -37,6 +38,10 @@ #include "net/tmwa/messageout.h" #include "net/tmwa/protocol.h" +#include "resources/notifytypes.h" + +#include "utils/delete2.h" + #include "debug.h" extern Net::GuildHandler *guildHandler; @@ -399,4 +404,14 @@ void GuildHandler::processGuildMemberLogin(Net::MessageIn &msg) const } } +void GuildHandler::processGuildExpulsion(Net::MessageIn &msg) const +{ + msg.skip(2, "len?"); + const std::string nick = msg.readString(24, "name?"); + msg.skip(24, "player name"); + msg.readString(44, "message"); // Message + + processGuildExpulsionContinue(nick); +} + } // namespace TmwAthena diff --git a/src/net/tmwa/guildhandler.h b/src/net/tmwa/guildhandler.h index a7f32c9c6..acc32e70b 100644 --- a/src/net/tmwa/guildhandler.h +++ b/src/net/tmwa/guildhandler.h @@ -77,6 +77,8 @@ class GuildHandler final : public Ea::GuildHandler, public MessageHandler void processGuildPositionInfo(Net::MessageIn &msg) const; void processGuildMemberLogin(Net::MessageIn &msg) const; + + void processGuildExpulsion(Net::MessageIn &msg) const; }; extern Ea::GuildTab *guildTab; |