From d6012201991a732b6b47e063a52e201450889c74 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Tue, 16 Sep 2014 12:14:08 +0300 Subject: eathena: add packet CMSG_PARTY_ALLOW_INVITES 0x02c8. --- src/net/eathena/partyhandler.cpp | 6 ++++++ src/net/eathena/partyhandler.h | 2 ++ src/net/eathena/protocol.h | 1 + 3 files changed, 9 insertions(+) (limited to 'src/net/eathena') diff --git a/src/net/eathena/partyhandler.cpp b/src/net/eathena/partyhandler.cpp index ab5d17d47..47260cc2b 100644 --- a/src/net/eathena/partyhandler.cpp +++ b/src/net/eathena/partyhandler.cpp @@ -456,4 +456,10 @@ void PartyHandler::changeLeader(const std::string &name) const outMsg.writeInt32(being->getId()); } +void PartyHandler::allowInvite(const bool allow) const +{ + MessageOut outMsg(CMSG_PARTY_ALLOW_INVITES); + outMsg.writeInt8(allow ? 1 : 0); +} + } // namespace EAthena diff --git a/src/net/eathena/partyhandler.h b/src/net/eathena/partyhandler.h index 9459d0328..f71e5a224 100644 --- a/src/net/eathena/partyhandler.h +++ b/src/net/eathena/partyhandler.h @@ -65,6 +65,8 @@ class PartyHandler final : public MessageHandler, public Ea::PartyHandler void processPartySettings(Net::MessageIn &msg); + void allowInvite(const bool allow) const override final; + protected: void processPartyInvitationStats(Net::MessageIn &msg); diff --git a/src/net/eathena/protocol.h b/src/net/eathena/protocol.h index 1a913b75d..f5ac75da9 100644 --- a/src/net/eathena/protocol.h +++ b/src/net/eathena/protocol.h @@ -298,6 +298,7 @@ #define CMSG_PARTY_KICK 0x0103 #define CMSG_PARTY_MESSAGE 0x0108 #define CMSG_PARTY_CHANGE_LEADER 0x07da +#define CMSG_PARTY_ALLOW_INVITES 0x02c8 #define CMSG_MOVE_TO_STORAGE 0x07ec /** Move item to storage */ #define CSMG_MOVE_FROM_STORAGE 0x085b /** Remove item from storage */ -- cgit v1.2.3-60-g2f50